Added outputs for IPs.
- Made sure node-memory ad node-vcpus is passed down to module. - Fixed get-vm-ips.sh after move to module.
This commit is contained in:
@@ -51,8 +51,9 @@ resource "libvirt_domain" "nodes" {
|
||||
cloudinit = element(libvirt_cloudinit_disk.node-inits.*.id, count.index)
|
||||
|
||||
network_interface {
|
||||
network_name = "default"
|
||||
hostname = "${var.name-prefix}-${count.index}"
|
||||
network_name = "default"
|
||||
hostname = "${var.name-prefix}-${count.index}"
|
||||
wait_for_lease = true
|
||||
}
|
||||
|
||||
# IMPORTANT: this is a known bug on cloud images, since they expect a console
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
output "ips" {
|
||||
value = libvirt_domain.nodes.*.network_interface.0.addresses.0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user