How gudshuis/proxmox-terraform-vm-template works
This repository documents a Proxmox VM setup workflow: create an API token, configure and apply Terraform, prepare a cloud-image template, generate SSH access, clone a VM, and optionally provision packages. The graph preserves those distinct stages and the documented Proxmox and SSH interactions. Source excerpts were not provided, so relationships rely on the README; Terraform file-level behavior beyond its documented configuration role is not inferred.
Main entry points: main.tf Terraform configuration · 0-proxmox-tokenid-secret.sh Create API token · 2-create-baigan-ssh-key.sh Generate SSH key · pve1-template.tfvars Environment variables
Components 14
Credentials and access
- Create API token
0-proxmox-tokenid-secret.sh - Generate SSH key
2-create-baigan-ssh-key.sh - Local SSH config
2-create-baigan-ssh-key.sh
Terraform configuration
- Environment variables
pve1-template.tfvars - Provider configuration
provider.tf - Variable declarations
variables.tf - Terraform configuration
main.tf - Terraform outputs
outputs.tf
VM provisioning
- Prepare VM template
1-create-vm-template.sh - Clone and configure VM
3-vm-creation-from-clone.sh - Package provisioning placeholder
4-vm-packages.sh
Other components
- Operator
- Proxmox host
- Provisioned VM
Connections 15
- Operator → Create API token: runs
README.md - Create API token → Proxmox host: creates API token
README.md - Operator → Environment variables: configures
README.md - Operator → Terraform configuration: applies
README.md - Environment variables → Terraform configuration: supplies variables
README.md - Terraform configuration → Proxmox host: sets up template
README.md - Operator → Prepare VM template: runs
README.md - Prepare VM template → Proxmox host: imports image
README.md - Operator → Generate SSH key: runs
README.md - Generate SSH key → Local SSH config: updates
README.md - Operator → Clone and configure VM: runs
README.md - Clone and configure VM → Proxmox host: clones template
README.md - Proxmox host → Provisioned VM: creates
README.md - Operator → Provisioned VM: connects by SSH
README.md - Operator → Package provisioning placeholder: runs optional step
README.md