12 lines
279 B
Terraform
12 lines
279 B
Terraform
|
|
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
|
||
|
|
}
|