This commit is contained in:
CC
2026-09-12 16:25:45 +01:00
parent 570e238ad0
commit e6a70d2540
2 changed files with 5 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ locals {
vm_name = v.vm_name
node_name = v.node_name
ipv4_address = module.proxmox_ubuntu_cloudinit_clone[k].vm_ipv4_address
vm_tags = concat(
vm_tags = concat(
try(v.vm_tags, []),
["terraform", "docker", v.service_name, "ip-${replace(module.proxmox_ubuntu_cloudinit_clone[k].vm_ipv4_address, ".", "-")}"]
)

View File

@@ -3,7 +3,7 @@ module "proxmox_ubuntu_cloudinit_clone" {
source = "./modules/proxmox_ubuntu_cloudinit_clone"
vm_name = each.value.vm_name
service_name = each.value.service_name
service_name = each.value.service_name
node_name = each.value.node_name
node_datastore = var.vm_defaults.node_datastore
bridge = var.vm_defaults.bridge
@@ -16,9 +16,9 @@ module "proxmox_ubuntu_cloudinit_clone" {
try(each.value.vm_tags, []),
["terraform", "docker", each.value.service_name]
)
vm_user_sshkey = var.vm_defaults.vm_user_sshkey
compose_file_b64 = filebase64("${path.root}/../compose/docker-compose.yml")
env_file_b64 = filebase64("${path.root}/../compose/.env")
vm_user_sshkey = var.vm_defaults.vm_user_sshkey
compose_file_content = filebase64("${path.root}/../compose/docker-compose.yml")
env_file_content = filebase64("${path.root}/../compose/.env")
}
# module "inventory" {