mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 07:43:07 +00:00
Merge pull request 'Update proxmox.tf' (#151) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#151
This commit is contained in:
@ -64,16 +64,16 @@ locals {
|
||||
})
|
||||
)
|
||||
}
|
||||
merge = function([any, any], any) => (
|
||||
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 = {}
|
||||
@ -88,7 +88,8 @@ 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) }
|
||||
|
||||
Reference in New Issue
Block a user