From aa63551529e1dedac39102e485039d26fe157222 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Wed, 27 Aug 2025 08:55:44 +0000 Subject: [PATCH] Update proxmox.tf --- proxmox.tf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/proxmox.tf b/proxmox.tf index c44e519..677e46c 100644 --- a/proxmox.tf +++ b/proxmox.tf @@ -48,12 +48,14 @@ resource "proxmox_virtual_environment_file" "vm_user_data" { file_name = "cloud-init-iac-k8s-${each.key}.yaml" data = yamlencode( local.deep_merge( - yamldecode(file("${path.module}/cloud-init-base.yaml")), - yamldecode(templatefile("${path.module}/cloud-init-vm.yaml.tftpl", { - extra_packages = try(each.value.extra_packages, []), - extra_users = try(each.value.extra_users, []), - extra_runcmd = try(each.value.extra_runcmd, []), - })) # đŸ‘ˆ Aqui fechavas o templatefile, mas o parĂªntesis do deep_merge ficava mal fechado + [ + yamldecode(file("${path.module}/cloud-init-base.yaml")), + yamldecode(templatefile("${path.module}/cloud-init-vm.yaml.tftpl", { + extra_packages = try(each.value.extra_packages, []), + extra_users = try(each.value.extra_users, []), + extra_runcmd = try(each.value.extra_runcmd, []), + })) + ] ) ) }