declared array and fixed protocol

This commit is contained in:
Maria Haider 2025-03-29 19:45:44 +01:00
parent df53443d46
commit 211ccd6dc2
Signed by: mariah
GPG key ID: 6EF520A1829E8B1D

View file

@ -1,7 +1,10 @@
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',
proto => 'udp'
proto => 'tcp'
}
}