Compare commits

..

3 commits

Author SHA1 Message Date
b3c013e48f
Fix resource an debug cleanup 2024-10-30 21:32:31 +01:00
8a652ed78d
Add port to fw 2024-10-30 16:00:12 +01:00
b1aa8a8fb8
Open fw to test source 2024-10-30 14:04:58 +01:00

View file

@ -1,4 +1,16 @@
class matrix::lb ( class matrix::lb (
) { ) {
$ips = lookup('sourceips', undef, undef, undef) $ips = lookup('sourceips', undef, undef, undef)
$ips.each | String $ip | {
if $::facts['sunet_nftables_enabled'] == 'yes' {
sunet::nftables::allow { "nft_testip${ip}_ingress":
port => 8443,
from => $ip,
}
sunet::nftables::allow { "nft_testip${ip}_kubeapi":
port => 16443,
from => $ip,
}
}
}
} }