Skip to content

Commit

Permalink
output router ip
Browse files Browse the repository at this point in the history
  • Loading branch information
remche committed Jun 15, 2022
1 parent 9df4926 commit 4860909
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/network/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4860909

Please sign in to comment.