tofu: Container-Pool nicht über tofu (pool_id erzwingt Ersetzen)
ci / test (push) Successful in 29s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Robert Rapp
2026-10-12 20:06:29 +02:00
co-authored by Claude Opus 5.5
parent 438e0949e9
commit c1f11d2660
+5 -1
View File
@@ -114,7 +114,6 @@ resource "proxmox_virtual_environment_container" "infra" {
node_name = each.value.node
vm_id = each.value.vmid
tags = ["knaster", "infra"]
pool_id = try(each.value.pool, "infra")
unprivileged = true
start_on_boot = true
@@ -122,6 +121,11 @@ resource "proxmox_virtual_environment_container" "infra" {
nesting = true # Docker im LXC
}
# Pool-Zuordnung per pveum (Pool infra): pool_id erzwingt beim Container ein Ersetzen
lifecycle {
ignore_changes = [pool_id]
}
cpu {
cores = each.value.cores
}