ADR-001 / Decision record
OpenTofu with the bpg/proxmox provider
Declare virtual hardware in OpenTofu, using the most complete Proxmox provider.
- Context
- Every VM, LXC, disk, NIC and image on the node needs to be declared in Git, reviewed as a diff and reproducible from scratch.
- Decision
- Layer 1 (virtual hardware) is OpenTofu with the bpg/proxmox provider. Nothing else creates guests.
- Why
- bpg/proxmox is the most complete, actively maintained Proxmox provider. OpenTofu is open source and has native state encryption, which the local-state decision (ADR-004) depends on.
- Trade-off
- The provider is pre-1.0, so breaking changes are possible. Versions are pinned exactly and every upgrade is rehearsed in lab first.
Notes
Pinning exactly means a provider upgrade is a deliberate pull request, not something that happens because a version constraint allowed it. That PR is applied to lab first. Because the environment roots are byte-identical apart from one tfvars file (ADR-002), a clean lab apply tells me something real about prod.