This repository provides infrastructure-as-code examples to automate the creation of virtual machine images on Hetzner Cloud using [HashiCorp Packer](https://www.packer.io) and the [Packer Plugin for Hetzner Cloud](https://developer.hashicorp.com/packer/integrations/hetznercloud/hcloud). All examples are written in the HashiCorp Configuration Language `HCL2`.
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`.
All available [variables](https://developer.hashicorp.com/packer/docs/templates/hcl_templates/variables) are defined in the `variables.pkr.hcl` files. They can be overwritten using environment variables or in the `server.auto.pkrvars.hcl` file.
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/infra/packer-hcloud/src/branch/main/LICENSE) file for details.