From e5d1fa45b1f2ec13a4ac6036874817009cba3c3d Mon Sep 17 00:00:00 2001 From: Robert Rapp Date: Mon, 12 Oct 2026 19:09:08 +0200 Subject: [PATCH] tofu: neue Ressourcennamen des Providers (hardware_mapping_pci, haresource) Co-Authored-By: Claude Opus 5.5 --- platform/proxmox/tofu/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"