https://github.com/a7d-corp/homelab-instance-template
Template repo for managing a Proxmox instance with Terraform.
https://github.com/a7d-corp/homelab-instance-template
homelab proxmox terraform virtualisation virtualization
Last synced: 6 months ago
JSON representation
Template repo for managing a Proxmox instance with Terraform.
- Host: GitHub
- URL: https://github.com/a7d-corp/homelab-instance-template
- Owner: a7d-corp
- Created: 2021-09-04T22:27:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T20:40:26.000Z (about 3 years ago)
- Last Synced: 2023-09-18T13:10:51.966Z (over 2 years ago)
- Topics: homelab, proxmox, terraform, virtualisation, virtualization
- Language: HCL
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# homelab-instance-template
Template repo for managing an instance.
## Managing secrets
Sensitive configuration can be {en,de}crypted using a Vault instance.
Decryption:
```bash
vault write transit/decrypt/tf-encryption-key -format=json ciphertext=$(cat backend-config.enc) | jq -r .data.plaintext | base64 -d > backend-config
```
Encryption:
```bash
vault write transit/encrypt/tf-encryption-key -format=json plaintext=$(cat backend-config | base64 -w 0) | jq -r .data.ciphertext > backend-config.enc
```
## Template customisation
Replace all occurrences of `INSTANCE-NAME`.