tested n8n template

This commit is contained in:
CC
2026-05-22 21:59:40 +01:00
parent 7f84f1b2b6
commit 45a704709a
32 changed files with 1027 additions and 69 deletions

View File

@@ -1,20 +1,41 @@
output "vm_ipv4_addresses" {
description = "Map of instance key to VM IPv4 address"
value = {
for k, m in module.vm : k => m.vm_ipv4_address
}
}
output "vm_tags" {
value = {
for k, m in module.vm : k => concat(
try(local.instance_map[k].vm_tags, []),
["terraform", "docker", local.instance_map[k].service_name, "ip-${replace(m.vm_ipv4_address, ".", "-")}"]
)
for k, m in module.vm-n8n : k => m.vm_ipv4_address
}
}
output "service_names" {
description = "Map of instance key to service name"
value = {
for k, cfg in local.instance_map : k => cfg.service_name
for k, v in local.instance_map : k => v.service_name
}
}
output "vm_names" {
description = "Map of instance key to VM name"
value = {
for k, v in local.instance_map : k => v.vm_name
}
}
output "vm_tag_data" {
description = "Map of instance key to node, VM name, and final tags"
value = {
for k, v in local.vm_created : k => {
node_name = v.node_name
vm_name = v.vm_name
tags = v.vm_tags
}
}
}
output "inventory_file" {
description = "Path to the generated Ansible inventory"
value = module.inventory.filename
}
output "vm_data_file" {
description = "Path to the generated VM data file"
value = module.vm_data.filename
}