Open ports
This commit is contained in:
parent
64d8ad253d
commit
4bc3a128ac
1 changed files with 12 additions and 4 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue