mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Update proxmox.tf
This commit is contained in:
14
proxmox.tf
14
proxmox.tf
@ -48,12 +48,14 @@ resource "proxmox_virtual_environment_file" "vm_user_data" {
|
|||||||
file_name = "cloud-init-iac-k8s-${each.key}.yaml"
|
file_name = "cloud-init-iac-k8s-${each.key}.yaml"
|
||||||
data = yamlencode(
|
data = yamlencode(
|
||||||
local.deep_merge(
|
local.deep_merge(
|
||||||
yamldecode(file("${path.module}/cloud-init-base.yaml")),
|
[
|
||||||
yamldecode(templatefile("${path.module}/cloud-init-vm.yaml.tftpl", {
|
yamldecode(file("${path.module}/cloud-init-base.yaml")),
|
||||||
extra_packages = try(each.value.extra_packages, []),
|
yamldecode(templatefile("${path.module}/cloud-init-vm.yaml.tftpl", {
|
||||||
extra_users = try(each.value.extra_users, []),
|
extra_packages = try(each.value.extra_packages, []),
|
||||||
extra_runcmd = try(each.value.extra_runcmd, []),
|
extra_users = try(each.value.extra_users, []),
|
||||||
})) # 👈 Aqui fechavas o templatefile, mas o parêntesis do deep_merge ficava mal fechado
|
extra_runcmd = try(each.value.extra_runcmd, []),
|
||||||
|
}))
|
||||||
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user