Merge pull request '[deploy-opentofu]' (#321) from fenix-admin into dev

Reviewed-on: fenix-gitea-admin/iac-opentofu-private#321
This commit is contained in:
2025-12-08 14:34:35 +00:00
2 changed files with 13 additions and 0 deletions

View File

@ -164,6 +164,15 @@ resource "proxmox_virtual_environment_vm" "k8s_vms" {
interface = "scsi1" 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 { initialization {
ip_config { ip_config {
ipv4 { ipv4 {

View File

@ -42,6 +42,10 @@ variable "proxmox_k8s_vms" {
ip = string ip = string
ip2 = string ip2 = string
ip3 = string ip3 = string
hostpci = optional(list(object({
pcie = bool
device =string
})))
cores = optional(number) cores = optional(number)
memory = optional(number) memory = optional(number)
data_store = optional(string) data_store = optional(string)