https://github.com/modem7/proxmox-packer-bitwarden
Packer Image Build Template Code For Proxmox with Bitwarden-CLI support
https://github.com/modem7/proxmox-packer-bitwarden
Last synced: about 1 year ago
JSON representation
Packer Image Build Template Code For Proxmox with Bitwarden-CLI support
- Host: GitHub
- URL: https://github.com/modem7/proxmox-packer-bitwarden
- Owner: modem7
- License: mit
- Created: 2022-11-30T22:49:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-30T16:09:01.000Z (over 2 years ago)
- Last Synced: 2023-11-30T17:41:51.873Z (over 2 years ago)
- Language: Shell
- Homepage:
- Size: 75.2 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proxmox-packer-bitwarden
Packer Build Template Code For Proxmox with Bitwarden-cli support.
[](https://www.buymeacoffee.com/modem7)
## Installing Bitwarden CLI
```bash
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:
```bash
bw config server https://bitwarden.example.com
bw login --apikey
```
## Create your secrets in Bit/Vaultwarden
In Bit/Vaultwarden:
```text
- 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
```bash
cd ubuntu-cloud-jammy-master
packer validate .
```
## Source Bitwarden Variables
```bash
source ./credentials.sh
```
## Initialise Packer Config
```bash
packer init .
```
## Build Packer Config
```bash
packer build .
```