Applications/tools/packer.md
2024-04-03 22:04:13 +02:00

1.4 KiB

Packer

Create identical machine images for multiple platforms from a single source configuration.

Project Homepage: https://www.packer.io Documentation: https://developer.hashicorp.com/packer/docs Plugins: https://developer.hashicorp.com/packer/plugins

Installation

macOS

brew tap hashicorp/tap
brew install hashicorp/tap/packer

Windows

https://developer.hashicorp.com/packer/downloads

Linux

Ubuntu/Debian

wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list

sudo apt update && sudo apt install packer

Plugins

TODO: WIP

Proxmox Builder

The Proxmox Packer builder is able to create virtual machines and store them as new images using proxmox-clone, and proxmox-iso.

Authentication

TODO: WIP

You can also use the environment variables PROXMOX_URL, PROXMOX_USERNAME, PROXMOX_PASSWORD, and PROXMOX_TOKEN to authenticate to Proxmox.

Template


WIP: TODO