matrix-puppet/manifests/lb.pp

16 lines
340 B
ObjectPascal
Raw Normal View History

2024-10-30 12:28:39 +00:00
class matrix::lb (
) {
2024-10-30 13:04:58 +00:00
$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,
}
}
notify { 'test':
message => "Test test test ${ip}",
}
}
2024-10-30 12:28:39 +00:00
}