You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Robert Kaussow 2fed1bb8c6
fix: add missing cloud-init settings
1 week ago
rocky-9.0 fix: add missing cloud-init settings 1 week ago
scripts initial commit 2 weeks ago
.dictionary docs: add upstream reference 2 weeks ago
.drone.yml sign drone config 2 weeks ago
.gitignore initial commit 2 weeks ago
.markdownlint.yml add markdownlint config 2 weeks ago
LICENSE initial commit 2 weeks ago
README.md fix drone badge 2 weeks ago
renovate.json chore: cleanup renovate config 2 weeks ago

README.md

packer-proxmox

Build Status License: MIT

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

This project is inspired by bitop/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

Step 1 - Download the release

Download the latest release.

Step 2 - Download the Guest Operating Systems ISOs

  1. Download the required guest operating system ISO images (e.g. Rocky-9.0-x86_64-minimal.iso).
  2. Obtain the checksum type (e.g. sha256, md5, etc.) and checksum value for each guest operating system .iso image. This will be used in the build input variables.
  3. Upload the guest operating system .iso images to your Proxmox server.

Step 3 - 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.

Step 4 - 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.0/
packer build rocky-9.0/

License

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