Hi all,
I would like to output the private IPs (not floating) of instances created through a unique resource with count = 3.
resource "openstack_compute_instance_v2" "node" {
count = "${var.node_count}"
name = "${var.cluster_name}_node"
region = "${var.region}"
flavor_name = "${var.node_flavor_name}"
image_id= "${data.openstack_images_image_v2.node_image.id}"
key_pair = "${openstack_compute_keypair_v2.keypair.name}"
security_groups = [ "${openstack_networking_secgroup_v2.node_secgroup.name}" ]
network = {
uuid = "${openstack_networking_network_v2.node_network.id}"
}
}
output "node_private_address" {
value = "${openstack_compute_instance_v2.node.network.fixed_ip_v4}"
}But it doesn't output anything
If I put this, nothing is output because I didn't assign any floating IP
output "node_private_address" {
value = "${openstack_compute_instance_v2.node.access_ip_v4.}"
}
Do you have any trick to get the private IPs from a group of server ?
BR