The author uses Terraform to manage Proxmox virtual machines and containers. A specific Proxmox Terraform provider exhibits unusual behavior, attempting unnecessary disk recreation during `terraform apply`. Despite this, resource creation generally functions correctly. The process feels less streamlined compared to other IaC platforms like AWS. The provider sometimes initiates seemingly unnecessary updates without actual changes. The author's Terraform configuration includes definitions for both QEMU VMs and LXC containers. The configuration specifies details such as CPU cores, memory, disk size, and networking settings. A notable issue involves a workaround for a provider bug related to NFS mounts. The author utilizes a self-signed certificate and local credentials, acknowledging security implications. Despite quirks, the Terraform approach proves more efficient than manual Proxmox web UI management.
dev.to
dev.to