diff --git a/platform/proxmox/tofu/main.tf b/platform/proxmox/tofu/main.tf index 907ed74..e09c714 100644 --- a/platform/proxmox/tofu/main.tf +++ b/platform/proxmox/tofu/main.tf @@ -1,7 +1,7 @@ # GPU-Mappings, GPU-VMs und Infra-LXC aus sites//proxmox.yaml. # Gäste per DHCP (D5 zurückgestellt): Die Adresse meldet der qemu-guest-agent (siehe outputs.tf). -resource "proxmox_virtual_environment_hardware_mapping_pci" "gpu" { +resource "proxmox_hardware_mapping_pci" "gpu" { for_each = local.site.pci_mappings name = each.key map = [{ @@ -82,7 +82,7 @@ resource "proxmox_virtual_environment_vm" "gpu" { for_each = each.value.gpus content { device = "hostpci${hostpci.key}" - mapping = proxmox_virtual_environment_hardware_mapping_pci.gpu[hostpci.value].name + mapping = proxmox_hardware_mapping_pci.gpu[hostpci.value].name pcie = true rombar = true } @@ -157,7 +157,7 @@ resource "proxmox_virtual_environment_container" "infra" { } } -resource "proxmox_virtual_environment_haresource" "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"