Skip to content

Commit

Permalink
Merge pull request #1045 from aztfmod/AL-2203-5.5.5
Browse files Browse the repository at this point in the history
Add rover 2203, fixing service bus networking rule
  • Loading branch information
arnaudlh authored Mar 28, 2022
2 parents 7e73018 + e0d2944 commit 6f2edf9
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 60 deletions.
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.1.6-2202.2503
image: aztfmod/rover:1.1.7-2203.2311
user: vscode

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

container:
image: aztfmod/rover:1.1.6-2202.2503
image: aztfmod/rover:1.1.7-2203.2311
options: --user 0

steps:
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
needs: [testcases]

container:
image: aztfmod/rover:1.1.6-2202.2503
image: aztfmod/rover:1.1.7-2203.2311
options: --user 0

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

container:
image: aztfmod/rover:0.15.5-2202.2503
image: aztfmod/rover:0.15.5-2203.2311
options: --user 0

steps:
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
needs: [testcases]

container:
image: aztfmod/rover:0.15.5-2202.2503
image: aztfmod/rover:0.15.5-2203.2311
options: --user 0

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

container:
image: aztfmod/rover:1.1.6-2202.2503
image: aztfmod/rover:1.1.7-2203.2311
options: --user 0

steps:
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
needs: [testcases]

container:
image: aztfmod/rover:1.1.6-2202.2503
image: aztfmod/rover:1.1.7-2203.2311
options: --user 0

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

container:
image: aztfmod/rover:0.15.5-2202.2503
image: aztfmod/rover:0.15.5-2203.2311
options: --user 0

steps:
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
needs: [testcases]

container:
image: aztfmod/rover:0.15.5-2202.2503
image: aztfmod/rover:0.15.5-2203.2311
options: --user 0

steps:
Expand Down
34 changes: 0 additions & 34 deletions examples/ci.sh

This file was deleted.

9 changes: 4 additions & 5 deletions messaging_servicebus_namespaces.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ module "servicebus_namespaces" {
resource_groups = local.combined_objects_resource_groups

remote_objects = {
resource_groups = local.combined_objects_resource_groups
vnets = local.combined_objects_networking
private_dns = local.combined_objects_private_dns
private_endpoints = try(each.value.private_endpoints, {})
resource_groups = local.combined_objects_resource_groups
vnets = local.combined_objects_networking
private_dns = local.combined_objects_private_dns
}

}

output "servicebus_namespaces" {
value = module.servicebus_namespaces
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ resource "azurerm_servicebus_namespace_network_rule_set" "rule_set" {
resource_group_name = var.remote_objects.resource_group_name
default_action = var.settings.default_action
ip_rules = var.settings.ip_rules
# TODO - to enable with provider upgrade
# public_network_access_enabled = try(var.settings.public_network_access_enabled, null)
trusted_services_allowed = try(var.settings.trusted_services_allowed, null)

dynamic "network_rules" {
for_each = try(var.settings.network_rules, {})
for_each = try(var.settings.subnets, {})
content {
subnet_id = can(var.remote_objects.vnets[network_rules.value.lz_key][network_rules.value.vnet_key].subnets[network_rules.value.subnet_key].id) ? var.remote_objects.vnets[network_rules.value.lz_key][network_rules.value.vnet_key].subnets[network_rules.value.subnet_key].id : var.remote_objects.vnets[var.client_config.landingzone_key][network_rules.value.vnet_key].subnets[network_rules.value.subnet_key].id
ignore_missing_vnet_service_endpoint = network_rules.value.ignore_missing_vnet_service_endpoint
subnet_id = can(network_rules.value.id) ? network_rules.value.id : var.remote_objects.vnets[try(network_rules.value.lz_key, var.client_config.landingzone_key)][network_rules.value.vnet_key].subnets[network_rules.value.subnet_key].id
ignore_missing_vnet_service_endpoint = try(network_rules.value.ignore_missing_vnet_service_endpoint, null)
}
}
}
16 changes: 8 additions & 8 deletions modules/messaging/servicebus/namespace/private_endpoints.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
module "private_endpoint" {
source = "../../../networking/private_endpoint"
for_each = var.remote_objects.private_endpoints
for_each = try(var.settings.private_endpoints, {})

resource_id = azurerm_servicebus_namespace.namespace.id
name = each.value.name
resource_groups = var.resource_groups
subnet_id = try(var.remote_objects.vnets[var.client_config.landingzone_key][each.value.vnet_key].subnets[each.value.subnet_key].id, var.remote_objects.vnets[each.value.lz_key][each.value.vnet_key].subnets[each.value.subnet_key].id)
settings = each.value
global_settings = var.global_settings
base_tags = local.base_tags
private_dns = var.remote_objects.private_dns
client_config = var.client_config
global_settings = var.global_settings
location = local.location
name = each.value.name
private_dns = can(each.value.private_dns) ? var.remote_objects.private_dns : {}
resource_groups = var.resource_groups
resource_id = azurerm_servicebus_namespace.namespace.id
settings = each.value
subnet_id = var.remote_objects.vnets[try(each.value.lz_key, var.client_config.landingzone_key)][each.value.vnet_key].subnets[each.value.subnet_key].id
}
2 changes: 1 addition & 1 deletion rover_on_ssh_host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
version: '3.7'
services:
rover:
image: aztfmod/rover:1.1.6-2202.2503
image: aztfmod/rover:1.1.7-2203.2311

user: vscode

Expand Down

0 comments on commit 6f2edf9

Please sign in to comment.