Files
N8N/terraform/output.tf

43 lines
1.0 KiB
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
2026-05-21 17:34:28 +01:00
module "inventory" {
source = "./modules/proxmox_ansible_inventory"
filename = "${abspath("${path.root}/..")}/ansible/inventory/inventory.yml"
instances = local.vm_created
2026-05-21 13:34:33 +01:00
}
2026-05-21 17:34:28 +01:00
module "vm_data" {
source = "./modules/proxmox_vm_data"
filename = "${abspath("${path.root}/..")}/terraform/vm_data.yml"
instances = local.vm_created
}