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,
|
|
|
|
}
|
2024-10-30 15:00:12 +00:00
|
|
|
sunet::nftables::allow { "nft_testip${ip}":
|
|
|
|
port => 16443,
|
|
|
|
from => $ip,
|
|
|
|
}
|
2024-10-30 13:04:58 +00:00
|
|
|
}
|
|
|
|
notify { 'test':
|
|
|
|
message => "Test test test ${ip}",
|
|
|
|
}
|
|
|
|
}
|
2024-10-30 12:28:39 +00:00
|
|
|
}
|