Fix resource an debug cleanup

This commit is contained in:
Magnus Andersson 2024-10-30 21:32:31 +01:00
parent 8a652ed78d
commit b3c013e48f
Signed by: mandersson
GPG key ID: 1F7C896B34B28164

View file

@ -3,17 +3,14 @@ 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}":
sunet::nftables::allow { "nft_testip${ip}_ingress":
port => 8443,
from => $ip,
}
sunet::nftables::allow { "nft_testip${ip}":
sunet::nftables::allow { "nft_testip${ip}_kubeapi":
port => 16443,
from => $ip,
}
}
notify { 'test':
message => "Test test test ${ip}",
}
}
}