From 7a32716a23b97e7c7edf984be3124c209059b24d Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Mon, 8 Dec 2025 14:26:40 +0000 Subject: [PATCH 1/2] Update proxmox.variables.tf --- proxmox.variables.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proxmox.variables.tf b/proxmox.variables.tf index 8a2faf5..1bba1ce 100644 --- a/proxmox.variables.tf +++ b/proxmox.variables.tf @@ -42,6 +42,10 @@ variable "proxmox_k8s_vms" { ip = string ip2 = string ip3 = string + hostpci = optional(list(object({ + pcie = bool + device =string + }))) cores = optional(number) memory = optional(number) data_store = optional(string) From d3db951dfa16cabd2741ff5d9f7bd0f689293399 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Mon, 8 Dec 2025 14:33:59 +0000 Subject: [PATCH 2/2] [deploy-opentofu] [deploy-opentofu] --- proxmox.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proxmox.tf b/proxmox.tf index 918ba1b..d8dea51 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -164,6 +164,15 @@ resource "proxmox_virtual_environment_vm" "k8s_vms" { interface = "scsi1" } + # Bloco dinĂ¢mico para lista de hostpci + dynamic "hostpci" { + for_each = try(each.value.hostpci, []) + content { + device = hostpci.value.device + pcie = try(hostpci.value.pcie, true) + } + } + initialization { ip_config { ipv4 {