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' {
|
2024-10-30 20:32:31 +00:00
|
|
|
sunet::nftables::allow { "nft_testip${ip}_ingress":
|
2024-10-30 13:04:58 +00:00
|
|
|
port => 8443,
|
|
|
|
from => $ip,
|
|
|
|
}
|
2024-10-30 20:32:31 +00:00
|
|
|
sunet::nftables::allow { "nft_testip${ip}_kubeapi":
|
2024-10-30 15:00:12 +00:00
|
|
|
port => 16443,
|
|
|
|
from => $ip,
|
|
|
|
}
|
2024-10-30 13:04:58 +00:00
|
|
|
}
|
|
|
|
}
|
2024-10-30 12:28:39 +00:00
|
|
|
}
|