Open ports

This commit is contained in:
Micke Nordin 2024-12-24 09:51:57 +01:00
parent 64d8ad253d
commit 4bc3a128ac

View file

@ -407,10 +407,18 @@ MACAddressPolicy=none'
content => template('sunetdrive/multinode/complete_reinstall.erb.sh'),
mode => '0744',
}
# Open ports
sunet::misc::ufw_allow { "https_port_${customer}":
from => '0.0.0.0',
port => $https_port,
if $::facts['sunet_nftables_enabled'] == 'yes' {
sunet::nftables::docker_expose { "https_port_${customer}":
allow_clients => '0.0.0.0',
port => $https_port,
iif => 'ens3',
}
} else {
# Open ports
sunet::misc::ufw_allow { "https_port_${customer}":
from => '0.0.0.0',
port => $https_port,
}
}
}
}