Open stacab opened 3 years ago
I've personally taken to just getting mac addresses and IP's like this:
output "workers_ips" {
value = {
for worker in libvirt_domain.worker :
(worker.name) => {
mac = distinct(flatten(concat([for interface in worker.network_interface : interface.mac])))
addresses = distinct(flatten(concat([for interface in worker.network_interface : interface.addresses])))
}
}
}
Hello, AFAICS, only getting IP address of guest is supported (via
network_interface.<N>.addresses.<M>
) Would be possible to add also reading of MAC address as attribute oflibvirt_domain
?