Compare commits
4 commits
8a208c2d41
...
b3c013e48f
Author | SHA1 | Date | |
---|---|---|---|
Magnus Andersson | b3c013e48f | ||
Magnus Andersson | 8a652ed78d | ||
Magnus Andersson | b1aa8a8fb8 | ||
Magnus Andersson | 25c7b772c7 |
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…
Reference in a new issue