tofu: neue Ressourcennamen des Providers (hardware_mapping_pci, haresource)
ci / test (push) Successful in 27s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Robert Rapp
2026-10-12 19:09:08 +02:00
co-authored by Claude Opus 5.5
parent ff74c1a7b2
commit e5d1fa45b1
+3 -3
View File
@@ -1,7 +1,7 @@
# GPU-Mappings, GPU-VMs und Infra-LXC aus sites/<site>/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"