-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
481e6e6
commit 1499d5c
Showing
4 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
templates/platform_landing_zone/modules/hub-and-spoke-vnet/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "dns_server_ip_addresses" { | ||
value = { for key, value in local.hub_virtual_networks : key => try(value.hub_router_ip_address, try(module.hub_and_spoke_vnet.firewalls[key].private_ip_address, null)) } | ||
} | ||
output "dns_server_ip_addresses" { | ||
value = { for key, value in local.hub_virtual_networks : key => try(value.hub_router_ip_address, try(module.hub_and_spoke_vnet.firewalls[key].private_ip_address, null)) } | ||
} |
24 changes: 12 additions & 12 deletions
24
templates/platform_landing_zone/modules/virtual-wan/local.gateways.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
locals { | ||
virtual_network_gateways_express_route = { | ||
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ | ||
virtual_hub_key = virtual_hub_key | ||
}, virtual_hub_value.virtual_network_gateways.express_route) if try(virtual_hub_value.virtual_network_gateways.express_route, null) != null | ||
} | ||
virtual_network_gateways_vpn = { | ||
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ | ||
virtual_hub_key = virtual_hub_key | ||
}, virtual_hub_value.virtual_network_gateways.vpn) if try(virtual_hub_value.virtual_network_gateways.vpn, null) != null | ||
} | ||
} | ||
locals { | ||
virtual_network_gateways_express_route = { | ||
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ | ||
virtual_hub_key = virtual_hub_key | ||
}, virtual_hub_value.virtual_network_gateways.express_route) if try(virtual_hub_value.virtual_network_gateways.express_route, null) != null | ||
} | ||
virtual_network_gateways_vpn = { | ||
for virtual_hub_key, virtual_hub_value in var.virtual_hubs : virtual_hub_key => merge({ | ||
virtual_hub_key = virtual_hub_key | ||
}, virtual_hub_value.virtual_network_gateways.vpn) if try(virtual_hub_value.virtual_network_gateways.vpn, null) != null | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
templates/platform_landing_zone/modules/virtual-wan/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "dns_server_ip_addresses" { | ||
value = { for key, value in local.virtual_hubs : key => try(module.hub_and_spoke_vnet.firewall_ip_addresses_by_hub_key[key].private_ip_address, null) } | ||
} | ||
output "dns_server_ip_addresses" { | ||
value = { for key, value in local.virtual_hubs : key => try(module.hub_and_spoke_vnet.firewall_ip_addresses_by_hub_key[key].private_ip_address, null) } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
output "dns_server_ip_addresses" { | ||
value = var.connectivity_type == "none" ? {} : (var.connectivity_type == "hub-and-spoke" ? module.hub_and_spoke_vnet.dns_server_ip_addresses : module.virtual_wan.dns_server_ip_addresses) | ||
} | ||
output "dns_server_ip_addresses" { | ||
value = var.connectivity_type == "none" ? {} : (var.connectivity_type == "hub-and-spoke" ? module.hub_and_spoke_vnet.dns_server_ip_addresses : module.virtual_wan.dns_server_ip_addresses) | ||
} |