mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 16:08:13 +00:00
f5c950f7fa
When provisioning a subset of versions (e.g. -Version 9), use terraform -target to apply only the requested nodes. This prevents Terraform from destroying VMs for other versions that exist in state. Key changes: - Provision: ISOs, answer files, and API token creation only run for requested version nodes. Tfvars always include ALL versions for state consistency. -target limits what Terraform applies. - Cleanup: only destroys VMs for the requested version. Storage containers only stopped when cleaning all versions. - Config: merges with existing config.json to preserve entries from previously provisioned versions. Based on -target pattern from ~/Source/homelab Makefile. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>