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:
Curtis Wilson
2021-11-11 14:50:45 -05:00
parent f4889f0428
commit 6f2b0a03b9
4 changed files with 26 additions and 7 deletions
+3 -2
View File
@@ -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
+4
View File
@@ -0,0 +1,4 @@
output "ips" {
value = libvirt_domain.nodes.*.network_interface.0.addresses.0
}