Skip to content

Commit

Permalink
Merge pull request #336 from ComputeCanada/azure_fw_sets
Browse files Browse the repository at this point in the history
Fix issue with Azure instance being inaccessible
  • Loading branch information
cmd-ntrf authored Nov 19, 2024
2 parents 35e0aa7 + 1614ff7 commit 805353e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "azurerm_public_ip" "public_ip" {
locals {
fw_tags = toset([ for key, value in var.firewall_rules: value.tag ])
fw_sets = {
for tags in distinct([for key, values in module.design.instances: toset(setintersection(values.tags, local.fw_tags))]):
for tags in distinct([for key, values in module.design.instances: toset(values.tags) if length(setintersection(values.tags, local.fw_tags)) > 0]):
join("-", toset(tags)) => toset(tags)
if length(tags) > 0
}
Expand Down
2 changes: 1 addition & 1 deletion common/configuration/puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ runcmd:
# Install required packages in runcmd instead of packages to speedup configuration
# of the admin user. This reduces the risk of Terraform timing out when trying to
# upload the terraform_data.yaml
dnf -y install git pciutils unzip
dnf -y install git pciutils unzip rsync
dnf -y remove cockpit\* firewalld --exclude=iptables
%{ if ! skip_upgrade ~}
# Upgrade all packages except Puppet if already installed
Expand Down

0 comments on commit 805353e

Please sign in to comment.