Files
N8N/terraform/output.tf
CC eded1b9777
Some checks failed
Deploy VM and App / terraform-ansible-deploy (push) Failing after 7s
ci/cd abs path
2026-05-21 17:34:28 +01:00

43 lines
1.0 KiB
HCL

output "vm_ipv4_addresses" {
description = "Map of instance key to VM IPv4 address"
value = {
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, 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
}
}
}
module "inventory" {
source = "./modules/proxmox_ansible_inventory"
filename = "${abspath("${path.root}/..")}/ansible/inventory/inventory.yml"
instances = local.vm_created
}
module "vm_data" {
source = "./modules/proxmox_vm_data"
filename = "${abspath("${path.root}/..")}/terraform/vm_data.yml"
instances = local.vm_created
}