Compare commits
2 commits
testing-20
...
main
Author | SHA1 | Date | |
---|---|---|---|
b3c013e48f | |||
8a652ed78d |
1 changed files with 5 additions and 4 deletions
|
@ -3,13 +3,14 @@ class matrix::lb (
|
||||||
$ips = lookup('sourceips', undef, undef, undef)
|
$ips = lookup('sourceips', undef, undef, undef)
|
||||||
$ips.each | String $ip | {
|
$ips.each | String $ip | {
|
||||||
if $::facts['sunet_nftables_enabled'] == 'yes' {
|
if $::facts['sunet_nftables_enabled'] == 'yes' {
|
||||||
sunet::nftables::allow { "nft_testip${ip}":
|
sunet::nftables::allow { "nft_testip${ip}_ingress":
|
||||||
port => 8443,
|
port => 8443,
|
||||||
from => $ip,
|
from => $ip,
|
||||||
}
|
}
|
||||||
|
sunet::nftables::allow { "nft_testip${ip}_kubeapi":
|
||||||
|
port => 16443,
|
||||||
|
from => $ip,
|
||||||
}
|
}
|
||||||
notify { 'test':
|
|
||||||
message => "Test test test ${ip}",
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue