2023-05-05 11:23:42 +02:00
2023-05-04 23:41:44 +02:00
2023-05-04 23:41:44 +02:00
2023-05-05 11:23:42 +02:00
2023-05-05 11:18:29 +02:00
2023-05-04 23:41:44 +02:00

packer-alpine-hetzner

Packer build scripts for creating cloud-init ready Alpine Linux templates on Hetzner cloud.

Usage

You will need a Hetzner cloud API token (Hetzner has some docs). Set the HCLOUD_TOKEN environment variable to your token before running packer:

$ export HCLOUD_TOKEN="xxx"
$ packer build .

After the build runs successfully, there will be a new Alpine Linux snapshot (the default name is alpine-linux-XX.YY.ZZ, based on the version of Alpine Linux which was used to create the snapshot). This snapshot can be used to create a new server and configured via cloud-init during the creation process.

Configuration

See variables.pkr.hcl for some configuration options.

Description
Packer build scripts for creating Alpine Linux templates on Hetzner
Readme 27 KiB
Languages
HCL 78.8%
Shell 21.2%