boma/terraform/environments/production/outputs.tf

10 lines
234 B
Terraform
Raw Permalink Normal View History

output "vms" {
description = "Map of hostname to IP and Ansible group — consumed by make tf-inventory"
value = {
for name, cfg in local.vms : name => {
ip = split("/", cfg.ip)[0]
group = cfg.group
}
}
}