Compare commits
4 commits
testing-20
...
main
Author | SHA1 | Date | |
---|---|---|---|
b3c013e48f | |||
8a652ed78d | |||
b1aa8a8fb8 | |||
25c7b772c7 |
1 changed files with 16 additions and 0 deletions
16
manifests/lb.pp
Normal file
16
manifests/lb.pp
Normal file
|
@ -0,0 +1,16 @@
|
|||
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}_ingress":
|
||||
port => 8443,
|
||||
from => $ip,
|
||||
}
|
||||
sunet::nftables::allow { "nft_testip${ip}_kubeapi":
|
||||
port => 16443,
|
||||
from => $ip,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue