mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-12-16 11:27:36 +00:00
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:
@ -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 {
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user