Update proxmox.tf

This commit is contained in:
2025-08-26 19:10:03 +00:00
parent 08258abb83
commit f46e3007e9

View File

@ -64,11 +64,11 @@ locals {
})
)
}
merge = function([any, any], any) => { local._deep_merge_impl(args[0],args[1]) },
merge = (function([any, any], any) => { local._deep_merge_impl(args[0],args[1]) })
# Função recursiva para merge de mapas/listas
deep_merge = {
_deep_merge_impl = function(any, any) any => {
_deep_merge_impl = (function(any, any) any => {
let base = args[0]
let override = args[1]
let result = {}
@ -84,7 +84,7 @@ locals {
}
)
}
})
}
merged_cloudinit = { for vm_name, vm_cfg in local.vm_cloudinits : vm_name => local.deep_merge._deep_merge_impl(local.base_cloudinit, vm_cfg) }