Deploy Bootstrap VM on Proxmox.
Note: This method requires an ubuntu vm template. To create a compatible vm programtically refer to proxmox-ubuntu-vm-template
- Create terraform.tfvars (in the same directory as main.tf)
nano terraform.tfvars
- Check variables.tf, read the descriptions and add the required variables to env.tfvars. The env.tfvars file should look something like this:
PROXMOX_IP = "PROXMOX_IP"
PM_API_TOKEN_ID = "proxmox-token-id"
PM_API_TOKEN_SECRET = "proxmox-token-secret"
.
.
.
# Other Variables
- (First Run) Initialise the Project: Installs the required dependencies.
terraform init
- Plan the deployment
terraform plan
- Apply the changes
WARNING: This would actually update the resources on Proxmox.
terraform apply
- Destroy the VMs
terraform destroy
Run Playbook on the specified inventory
cd .dots/
ansible-playbook -i <module>_hosts <module>_ansible/<module>.yml