Open ports
This commit is contained in:
parent
0f746f67ce
commit
11ab90e981
1 changed files with 12 additions and 4 deletions
|
@ -407,10 +407,18 @@ MACAddressPolicy=none'
|
||||||
content => template('sunetdrive/multinode/complete_reinstall.erb.sh'),
|
content => template('sunetdrive/multinode/complete_reinstall.erb.sh'),
|
||||||
mode => '0744',
|
mode => '0744',
|
||||||
}
|
}
|
||||||
# Open ports
|
if $::facts['sunet_nftables_enabled'] == 'yes' {
|
||||||
sunet::misc::ufw_allow { "https_port_${customer}":
|
sunet::nftables::docker_expose { "https_port_${customer}":
|
||||||
from => '0.0.0.0',
|
allow_clients => '0.0.0.0',
|
||||||
port => $https_port,
|
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