diff --git a/modules/network/output.tf b/modules/network/output.tf index 3c16207..22030bd 100644 --- a/modules/network/output.tf +++ b/modules/network/output.tf @@ -4,3 +4,7 @@ output "nodes_subnet_id" { output "nodes_net_id" { value = openstack_networking_network_v2.nodes_net.id } +output "router_ip" { + value = openstack_networking_router_v2.router.external_fixed_ip[0].ip_address +} + diff --git a/outputs.tf b/outputs.tf index d3e7c47..6957d8c 100644 --- a/outputs.tf +++ b/outputs.tf @@ -8,6 +8,11 @@ output "internal_ip" { description = "Nodes internal IP" } +output "router_ip" { + value = module.network.router_ip + description = "Router external_ip" +} + output "node_config" { value = local.node_config sensitive = true