matrix-puppet/manifests/lb.pp
2024-10-30 16:00:12 +01:00

19 lines
446 B
Puppet

class matrix::lb (
) {
$ips = lookup('sourceips', undef, undef, undef)
$ips.each | String $ip | {
if $::facts['sunet_nftables_enabled'] == 'yes' {
sunet::nftables::allow { "nft_testip${ip}":
port => 8443,
from => $ip,
}
sunet::nftables::allow { "nft_testip${ip}":
port => 16443,
from => $ip,
}
}
notify { 'test':
message => "Test test test ${ip}",
}
}
}