proxmox_ubuntu_cloudinit_clone named from vm-creation-module
This commit is contained in:
@@ -9,16 +9,16 @@ locals {
|
||||
service_name = v.service_name
|
||||
vm_name = v.vm_name
|
||||
node_name = v.node_name
|
||||
ipv4_address = module.vm-n8n[k].vm_ipv4_address
|
||||
vm_tags = concat(
|
||||
ipv4_address = module.proxmox_ubuntu_cloudinit_clone[k].vm_ipv4_address
|
||||
vm_tags = concat(
|
||||
try(v.vm_tags, []),
|
||||
["terraform", "docker", v.service_name, "ip-${replace(module.vm-n8n[k].vm_ipv4_address, ".", "-")}"]
|
||||
["terraform", "docker", v.service_name, "ip-${replace(module.proxmox_ubuntu_cloudinit_clone[k].vm_ipv4_address, ".", "-")}"]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module "vm-n8n" {
|
||||
module "proxmox_ubuntu_cloudinit_clone" {
|
||||
for_each = local.instance_map
|
||||
source = "./modules/proxmox_ubuntu_cloudinit_clone"
|
||||
|
||||
@@ -31,7 +31,7 @@ module "vm-n8n" {
|
||||
vm_size = coalesce(try(each.value.vm_size, null), var.vm_defaults.vm_size)
|
||||
vm_bios = var.vm_defaults.vm_bios
|
||||
vm_machine = var.vm_defaults.vm_machine
|
||||
vm_tags = concat(
|
||||
vm_tags = concat(
|
||||
try(each.value.vm_tags, []),
|
||||
["terraform", "docker", each.value.service_name]
|
||||
)
|
||||
@@ -39,8 +39,8 @@ module "vm-n8n" {
|
||||
}
|
||||
|
||||
module "inventory" {
|
||||
source = "./modules/proxmox_ansible_inventory"
|
||||
filename = "${abspath("${path.root}/..")}/ansible/inventory/inventory.yml"
|
||||
source = "./modules/proxmox_ansible_inventory"
|
||||
filename = "${abspath("${path.root}/..")}/ansible/inventory/inventory.yml"
|
||||
instances = local.vm_created
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user