Packer Build Template Code For Proxmox with Bitwarden-cli support.
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
Further information: https://bitwarden.com/help/personal-api-key/
bw config server https://bitwarden.example.com
bw login --apikey
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.
cd ubuntu-cloud-jammy-master
packer validate .
source ./credentials.sh
packer init .
packer build .