Skip to content

Packer Image Build Template Code For Proxmox with Bitwarden-CLI support

License

Notifications You must be signed in to change notification settings

modem7/proxmox-packer-bitwarden

Repository files navigation

proxmox-packer-bitwarden

Packer Build Template Code For Proxmox with Bitwarden-cli support.

"Buy Me A Coffee"

Installing Bitwarden CLI

apt install unzip curl
curl -SLo bw.zip 'https://vault.bitwarden.com/download/?app=cli&platform=linux'
unzip -o bw.zip -d /usr/local/bin
rm -f bw.zip
chmod +x /usr/local/bin/bw

Login to Bitwarden CLI

Further information: https://bitwarden.com/help/personal-api-key/

bw config server https://bitwarden.example.com
bw login --apikey

Create your secrets in Bit/Vaultwarden

In Bit/Vaultwarden:

- Add Item.
- Secure Note.
- Set the name and set the secret in the "notes" field.
- Modify `credentials.sh` with your variables.
- Modify `variables.pkr.hcl` with your variables.

Validate Packer Config

cd ubuntu-cloud-jammy-master
packer validate .

Source Bitwarden Variables

source ./credentials.sh

Initialise Packer Config

packer init .

Build Packer Config

packer build .

About

Packer Image Build Template Code For Proxmox with Bitwarden-CLI support

Resources

License

Stars

Watchers

Forks