Skip to content
Snippets Groups Projects
Commit a022c869 authored by Bo-Chun Chen's avatar Bo-Chun Chen Committed by John-Paul Robinson
Browse files

Export compute node network

Accessible by calling module.nodes.network
 will return a map which key is node name and its network info
parent af77f1de
No related branches found
No related tags found
No related merge requests found
......@@ -38,3 +38,7 @@ resource "openstack_compute_instance_v2" "compute" {
output "id" {
value = openstack_compute_instance_v2.compute.*.id
}
output "network" {
value = zipmap(openstack_compute_instance_v2.compute.*.name, openstack_compute_instance_v2.compute.*.network)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment