
Terraform
How to Automate Your Infrastructure
Homelab
terraform
infrastructure
homelab
After learning Ansible, I discovered Terraform. I use Terraform to manage my infrastructure, and Ansible to manage my configuration. I use a var.tf
file for easy LXC presets. When mounting NFS shares, pay attention to unprivileged
and nesting
. Run your Terraform plans with the following:
terraform plan -out plan
terraform apply "plan"
Here’s the command for removing any tainted/out-of-sync containers:
terraform state list
terraform state rm proxmox_lxc.my_container
Have a wonderful rest of your day, and as always, cheers!
Copied!