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