Go to file
Robert Kaussow 5cad03393b
All checks were successful
continuous-integration/drone/push Build is passing
fix: add networkmanager config for eth0 to set route metric
2023-03-26 21:40:20 +02:00
rocky-9 fix: add networkmanager config for eth0 to set route metric 2023-03-26 21:40:20 +02:00
scripts fix: adjust cron files and folder permissions 2022-09-22 22:17:53 +02:00
.dictionary chore: remove cloud-init package-update-upgrade-install module 2023-03-19 21:38:17 +01:00
.drone.yml initial commit 2022-09-08 15:13:44 +02:00
.gitignore initial commit 2022-09-08 15:13:44 +02:00
.markdownlint.yml initial commit 2022-09-08 15:13:44 +02:00
LICENSE initial commit 2022-09-08 15:13:44 +02:00
README.md chore: remove cloud-init package-update-upgrade-install module 2023-03-19 21:38:17 +01:00
renovate.json initial commit 2022-09-08 15:13:44 +02:00

packer-hcloud

Build Status License: MIT

This repository provides infrastructure-as-code examples to automate the creation of virtual machine images on Hetzner Cloud using HashiCorp Packer and the Packer Plugin for Hetzner Cloud. All examples are written in the HashiCorp Configuration Language HCL2.

This project is inspired by jktr/hcloud-packer-templates.

Requirements

Packer:

Required plugins are automatically downloaded during the packer init phase. These plugins are placed in the same directory as your Packer executable /usr/local/bin or $HOME/.packer.d/plugins.

Configuration

Download the release

Download the latest release.

Configure the Variables

All available variables are defined in the variables.pkr.hcl files. They can be overwritten using environment variables or in the server.auto.pkrvars.hcl file.

Modify the Configurations and Scripts (Optional)

If required, modify the configuration and scripts files.

Build

Info: Using the force flag will automatically remove existing templates with a matching name or VMID.

packer init rocky-9/
packer build -force rocky-9/

License

This project is licensed under the MIT License - see the LICENSE file for details.