TofuLibVirt/vm-infrastructure/outputs.tf

12 lines
279 B
Terraform
Raw Permalink Normal View History

2025-09-22 15:26:25 +00:00
output "vm_ips" {
description = "IP addresses of the created VMs"
value = {
for i, vm in libvirt_domain.vm : vm.name => vm.network_interface[0].addresses[0]
}
}
output "vm_names" {
description = "Names of the created VMs"
value = libvirt_domain.vm[*].name
}