Skip to content

Commit

Permalink
Merge pull request #649 from aztfmod/patch.5.4.3
Browse files Browse the repository at this point in the history
Integration 5.4.3
  • Loading branch information
arnaudlh authored Sep 6, 2021
2 parents ba3d21e + a5ac6a8 commit ed93c01
Show file tree
Hide file tree
Showing 166 changed files with 4,586 additions and 680 deletions.
1 change: 0 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"service": "rover",

// Container user to use in VSCode Online and GitHub Codespaces
"containerUser" : "vscode",
"remoteUser": "vscode",

// The optional 'workspaceFolder' property is the path VS Code should open by default when
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
version: '3.7'
services:
rover:
image: aztfmod/rover:1.0.4-2108.1305
image: aztfmod/rover:1.0.4-2108.1802
user: vscode

labels:
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/master-standalone-tf100-longrunners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: standalone-scenario-tf100-longrunners

on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 0' #2 AM on Sunday

Expand All @@ -19,20 +20,29 @@ env:
ROVER_RUNNER: true

jobs:
load_scenarios:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.load_scenarios.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: load_scenarios
run: |
cases=$((
cat ./.github/workflows/standalone-scenarios-longrunners.json) | jq -c .)
echo "::set-output name=matrix::${cases}"
examples:
name: examples
runs-on: ubuntu-latest
needs: load_scenarios

strategy:
fail-fast: false
matrix:
config_files: [
"mssql_mi/200-mi",
"mssql_mi/200-mi-two-regions"
]
matrix: ${{fromJSON(needs.load_scenarios.outputs.matrix)}}

container:
image: aztfmod/rover:1.0.4-2108.1305
image: aztfmod/rover:1.0.4-2108.1802
options: --user 0

steps:
Expand All @@ -57,7 +67,7 @@ jobs:
needs: examples

container:
image: aztfmod/rover:1.0.4-2108.1305
image: aztfmod/rover:1.0.4-2108.1802
options: --user 0

steps:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/master-standalone-tf100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: standalone-scenario-tf100
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' #1 AM on Sunday
- cron: '0 0 * * *' #Midnight everyday

env:
TF_CLI_ARGS: '-no-color'
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
matrix: ${{fromJSON(needs.load_scenarios.outputs.matrix)}}

container:
image: aztfmod/rover:1.0.4-2108.1305
image: aztfmod/rover:1.0.4-2108.1802
options: --user 0

steps:
Expand All @@ -67,7 +67,7 @@ jobs:
needs: examples

container:
image: aztfmod/rover:1.0.4-2108.1305
image: aztfmod/rover:1.0.4-2108.1802
options: --user 0

steps:
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/master-standalone-tf14-longrunners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: standalone-scenario-tf14-longrunners

on:
workflow_dispatch:
schedule:
- cron: '0 3 * * 0' #3 AM on sunday

Expand All @@ -19,20 +20,28 @@ env:
ROVER_RUNNER: true

jobs:
load_scenarios:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.load_scenarios.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: load_scenarios
run: |
cases=$((
cat ./.github/workflows/standalone-scenarios.json) | jq -c .)
echo "::set-output name=matrix::${cases}"
examples:
name: examples
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
config_files: [
"mssql_mi/200-mi",
"mssql_mi/200-mi-two-regions"
]
matrix: ${{fromJSON(needs.load_scenarios.outputs.matrix)}}

container:
image: aztfmod/rover:0.14.11-2108.1305
image: aztfmod/rover:0.14.11-2108.1802
options: --user 0

steps:
Expand All @@ -57,7 +66,7 @@ jobs:
needs: examples

container:
image: aztfmod/rover:0.14.11-2108.1305
image: aztfmod/rover:0.14.11-2108.1802
options: --user 0

steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/master-standalone-tf14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: standalone-scenario-tf14

on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *' #1 AM on Sunday

Expand Down Expand Up @@ -41,7 +42,7 @@ jobs:
matrix: ${{fromJSON(needs.load_scenarios.outputs.matrix)}}

container:
image: aztfmod/rover:0.14.11-2108.1305
image: aztfmod/rover:0.14.11-2108.1802
options: --user 0

steps:
Expand All @@ -66,7 +67,7 @@ jobs:
needs: examples

container:
image: aztfmod/rover:0.14.11-2108.1305
image: aztfmod/rover:0.14.11-2108.1802
options: --user 0

steps:
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/master-standalone-tf15-longrunners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
name: standalone-scenario-tf15-longrunners

on:
workflow_dispatch:
schedule:
- cron: '0 4 * * 0' #2 AM on Sunday

Expand All @@ -19,20 +20,28 @@ env:
ROVER_RUNNER: true

jobs:
load_scenarios:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.load_scenarios.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: load_scenarios
run: |
cases=$((
cat ./.github/workflows/standalone-scenarios-longrunners.json) | jq -c .)
echo "::set-output name=matrix::${cases}"
examples:
name: examples
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
config_files: [
"mssql_mi/200-mi",
"mssql_mi/200-mi-two-regions"
]
matrix: ${{fromJSON(needs.load_scenarios.outputs.matrix)}}

container:
image: aztfmod/rover:0.15.5-2108.1305
image: aztfmod/rover:0.15.5-2108.1802
options: --user 0

steps:
Expand All @@ -57,7 +66,7 @@ jobs:
needs: examples

container:
image: aztfmod/rover:0.15.5-2108.1305
image: aztfmod/rover:0.15.5-2108.1802
options: --user 0

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/master-standalone-tf15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
matrix: ${{fromJSON(needs.load_scenarios.outputs.matrix)}}

container:
image: aztfmod/rover:0.15.5-2108.1305
image: aztfmod/rover:0.15.5-2108.1802
options: --user 0

steps:
Expand All @@ -67,7 +67,7 @@ jobs:
needs: examples

container:
image: aztfmod/rover:0.15.5-2108.1305
image: aztfmod/rover:0.15.5-2108.1802
options: --user 0

steps:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/standalone-scenarios-additional.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,22 @@

// Waiting for support to register arm provider - https://github.com/Azure/caf-terraform-landingzones/pull/238
"cognitive_services/100-cognitive-services-account"

// long runners candidates
"networking/virtual_network_gateway/100-expressroute-gateway",
"networking/virtual_network_gateway/101-vpn-site-to-site",
"networking/virtual_network_gateway/102-vpn-site-to-site-active-active",
"networking/virtual_network_gateway/103-vpn-site-to-site-connection",
"networking/virtual_wan/100-vwan-multi-hubs",
"networking/virtual_wan/101-vwan-hub-firewall-legacy",
"networking/virtual_wan/102-vwan-hub-firewall-new",
"networking/virtual_wan/103-vwan-hub-gw",
"networking/virtual_wan/104-vwan-hub-gw-spp",
"networking/virtual_wan/105-vwan-hub-route-table",
"networking/virtual_wan/106-vwan-hub-routes",

"mssql_mi/200-mi-two-regions",

"compute/vmware_cluster/102-vmware_express_route_authorization"
]
}
13 changes: 5 additions & 8 deletions .github/workflows/standalone-scenarios-longrunners.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"config_files": [
"logic_app/101-integration_service_environment",
"logic_app/108-logic_app_complex",
"mssql_mi/200-mi",
"mssql_mi/200-mi-two-regions",
"networking/virtual_network_gateway/100-expressroute-gateway",
"networking/virtual_network_gateway/101-vpn-site-to-site",
"networking/virtual_network_gateway/102-vpn-site-to-site-active-active",
"networking/virtual_network_gateway/103-vpn-site-to-site-connection",
"networking/virtual_wan/100-vwan-multi-hubs",
"networking/virtual_wan/109-vwan-vpn-gateway-connection",
"networking/virtual_wan/101-vwan-hub-firewall-legacy",
"networking/virtual_wan/102-vwan-hub-firewall-new",
"networking/virtual_wan/105-vwan-hub-route-table",
"networking/virtual_wan/103-vwan-hub-gw",
"networking/virtual_wan/104-vwan-hub-gw-spp",
"networking/virtual_wan/105-vwan-hub-route-table",
"networking/virtual_wan/106-vwan-hub-routes"
"compute/vmware_cluster/101-vmware_cluster"
]
}
18 changes: 11 additions & 7 deletions .github/workflows/standalone-scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"app_gateway/101-private-public",
"app_gateway/102-waf-policy",
"app_gateway/210-agw-with-keyvault",
"app_gateway/301-agw-v1",
"app_insights/100-all-attributes",
"app_insights/100-simple",
"automation/100-simple-automation-account",
Expand Down Expand Up @@ -42,7 +43,9 @@
"cosmos_db/100-simple-cosmos-db-mongo",
"cosmos_db/100-simple-cosmos-db-sql",
"cosmos_db/100-simple-cosmos-db-table",
"databricks/100-simple-databricks",
"databricks/100-standard-databricks-no-vnet",
"databricks/101-standard-databricks-vnet",
"databricks/102-premium-aml",
"datalake/101-datalake-storage",
"diagnostics_profiles/200-diagnostics-eventhub-namespaces",
"diagnostics_profiles/201-multi-eventhub-diagnostics",
Expand All @@ -53,6 +56,13 @@
"eventhub/104-namespace-and-evh-with-storage",
"keyvault/101-keyvault-policies",
"keyvault/102-keyvault-cert-issuer",
"logic_app/100-logic_app_workflow",
"logic_app/102-logic_app_integration_account",
"logic_app/103-logic_app_action_http",
"logic_app/104-logic_app_action_custom",
"logic_app/105-logic_app_trigger_http_request",
"logic_app/106-logic_app_trigger_recurrence",
"logic_app/107-logic_app_trigger_custom",
"machine_learning/100-aml",
"machine_learning/101-aml-vnet",
"managed_service_identity/100-msi-levels",
Expand Down Expand Up @@ -105,14 +115,8 @@
"networking/virtual_network/200-nsg-flow-logs",
"networking/virtual_network/201-nsg-flow-logs-v1",
"networking/virtual_wan/100-vwan-multi-hubs",
"networking/virtual_wan/101-vwan-hub-firewall-legacy",
"networking/virtual_wan/102-vwan-hub-firewall-new",
"networking/virtual_wan/103-vwan-hub-gw",
"networking/virtual_wan/104-vwan-hub-gw-spp",
"networking/virtual_wan/105-vwan-hub-route-table",
"networking/virtual_wan/106-vwan-hub-routes",
"networking/virtual_wan/108-vwan-vpn-site",
"networking/virtual_wan/109-vwan-vpn-gateway-connection",
"postgresql_server/100-simple-postgresql",
"postgresql_server/101-vnet-rule-postgresql",
"postgresql_server/102-private-endpoint-postgresql",
Expand Down
17 changes: 17 additions & 0 deletions application_gateway_applications.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module "application_gateway_applications" {
source = "./modules/networking/application_gateway_application"
for_each = local.networking.application_gateway_applications_v1

client_config = local.client_config
global_settings = local.global_settings
settings = each.value
application_gateway = local.combined_objects_application_gateway_platforms[try(each.value.lz_key, local.client_config.landingzone_key)][each.value.application_gateway_key]
app_services = local.combined_objects_app_services
keyvault_certificate_requests = module.keyvault_certificate_requests
keyvault_certificates = module.keyvault_certificates
keyvaults = local.combined_objects_keyvaults
}

output "application_gateway_applications_v1" {
value = module.application_gateway_applications
}
34 changes: 34 additions & 0 deletions application_gateway_platforms.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module "application_gateway_platforms" {
source = "./modules/networking/application_gateway_platform"
for_each = local.networking.application_gateway_platforms

application_gateway_waf_policies = local.combined_objects_application_gateway_waf_policies
client_config = local.client_config
diagnostics = local.combined_diagnostics
global_settings = local.global_settings
managed_identities = local.combined_objects_managed_identities
private_dns = lookup(each.value, "private_dns_records", null) == null ? {} : local.combined_objects_private_dns
public_ip_addresses = local.combined_objects_public_ip_addresses
settings = each.value
sku_name = each.value.sku_name
sku_tier = each.value.sku_tier
vnets = local.combined_objects_networking

resource_group_name = coalesce(
try(local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][each.value.resource_group.key].name, null),
try(local.combined_objects_resource_groups[local.client_config.landingzone_key][each.value.resource_group_key].name, null)
)
base_tags = try(local.global_settings.inherit_tags, false) ? coalesce(
try(local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][each.value.resource_group.key].tags, null),
try(local.combined_objects_resource_groups[local.client_config.landingzone_key][each.value.resource_group_key].tags, null)
) : {}
location = lookup(each.value, "region", null) == null ? coalesce(
try(local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][each.value.resource_group.key].location, null),
try(local.combined_objects_resource_groups[local.client_config.landingzone_key][each.value.resource_group_key].location, null)
) : local.global_settings.regions[each.value.region]
}

output "application_gateway_platforms" {
value = module.application_gateway_platforms

}
Loading

0 comments on commit ed93c01

Please sign in to comment.