|
||
---|---|---|
rocky-9 | ||
scripts | ||
.dictionary | ||
.drone.yml | ||
.gitignore | ||
.markdownlint.yml | ||
LICENSE | ||
README.md | ||
renovate.json | ||
test.sh |
packer-hcloud
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:
- HashiCorp Packer v1.7.7 or higher.
- HashiCorp Packer Plugin for Hetzner Cloud (
hcloud
) v1.0.5 or higher.
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
Initialize packer and start a build.
packer init rocky-9/
packer build rocky-9/
License
This project is licensed under the MIT License - see the LICENSE file for details.