infra: HA-Ressource und Node-Affinity per pve-host statt tofu, Infra-IP im Inventar
ci / test (push) Successful in 29s
ci / test (push) Successful in 29s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
23d6e36028
commit
bf20da1629
@@ -157,10 +157,5 @@ resource "proxmox_virtual_environment_container" "infra" {
|
||||
}
|
||||
}
|
||||
|
||||
resource "proxmox_haresource" "infra" {
|
||||
for_each = { for k, v in local.site.containers : k => v if try(v.ha, false) }
|
||||
resource_id = "ct:${each.value.vmid}"
|
||||
state = "started"
|
||||
comment = "knaster ${each.key}"
|
||||
depends_on = [proxmox_virtual_environment_container.infra]
|
||||
}
|
||||
# HA (Ressource + Node-Affinity-Regel) und Replikation setzt die Ansible-Rolle pve-host per root-SSH.
|
||||
# So braucht der tofu-Token kein Sys.Console auf /.
|
||||
|
||||
Reference in New Issue
Block a user