Files
Media/terraform/output.tf
CC b5849654bb
Some checks failed
Deploy VM and App / terraform-ansible-deploy (push) Has been cancelled
rc 1
2026-09-12 17:27:36 +01:00

31 lines
724 B
HCL

output "vm_ipv4_addresses" {
description = "Map of instance key to VM IPv4 address"
value = {
for k, m in module.proxmox_ubuntu_cloudinit_clone : 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
}
}
}