declared array and fixed protocol
This commit is contained in:
parent
df53443d46
commit
211ccd6dc2
1 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,10 @@
|
||||||
class net::open_1022 {
|
class net::open_1022 {
|
||||||
sunet::misc::ufw_allow { 'allow_ssh_1022':
|
|
||||||
from => ['130.242.125.68'],
|
$mgmt_addresses = hiera_array('mgmt_addresses',[])
|
||||||
|
|
||||||
|
sunet::nftables::allow { 'allow_ssh_1022':
|
||||||
|
from => $mgmt_addresses,
|
||||||
port => '1022',
|
port => '1022',
|
||||||
proto => 'udp'
|
proto => 'tcp'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue