Create a VM on Proxmox enrolled in a FreeIPA domain with Terraform

Terraform is a widely used tool for Infrastructure as Code (IaC). It can be used to define and provision all kinds of resources, from VMs to databases and DNS records. In collaboration with Proxmox it can be used to create VMs and LXC containers. However one thing I struggled with for a long time was automatically enrolling a newly created VM in a FreeIPA domain. To do this three steps are needed....

June 4, 2022 · 7 min · Me