Files
N8N/terraform/output.tf

42 lines
958 B
Terraform
Raw Normal View History

2026-05-20 22:26:32 +00:00
output "vm_ipv4_addresses" {
2026-05-21 13:34:33 +01:00
description = "Map of instance key to VM IPv4 address"
2026-05-20 22:26:32 +00:00
value = {
2026-05-20 23:54:25 +01:00
for k, m in module.vm-n8n : k => m.vm_ipv4_address
2026-05-20 22:26:32 +00:00
}
}
2026-05-21 13:34:33 +01:00
output "service_names" {
description = "Map of instance key to service name"
2026-05-20 22:26:32 +00:00
value = {
2026-05-21 13:34:33 +01:00
for k, v in local.instance_map : k => v.service_name
2026-05-20 22:26:32 +00:00
}
}
2026-05-21 13:34:33 +01:00
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"
2026-05-20 22:26:32 +00:00
value = {
2026-05-21 13:34:33 +01:00
for k, v in local.vm_created : k => {
node_name = v.node_name
vm_name = v.vm_name
tags = v.vm_tags
}
2026-05-20 22:26:32 +00:00
}
}
2026-05-21 13:34:33 +01:00
output "inventory_file" {
description = "Path to the generated Ansible inventory"
value = local_file.inventory.filename
}
output "vm_data_file" {
description = "Path to the generated VM data file"
value = local_file.vm_data.filename
}