Skip to content

Commit

Permalink
Allow missing sysctl keys
Browse files Browse the repository at this point in the history
The augeas provider prefetches them before the module has a chance to
load, so use the silent parameter instead.
  • Loading branch information
ananace committed Apr 12, 2023
1 parent 49118e1 commit 1e8ad6e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions manifests/node/kubelet.pp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
sysctl {
default:
ensure => $ensure,
silent => true,
value => '1';

'net.bridge.bridge-nf-call-iptables':
Expand All @@ -193,13 +194,6 @@

if $manage_kernel_modules {
Kmod::Load['br_netfilter']
~> exec { 'Wait for br_netfilter to load before kubelet sysctls':
command => 'sysctl -aNr net.bridge | grep nf-call-iptables',
path => $facts['path'],
refreshonly => true,
tries => 5,
try_sleep => 1,
}
-> [
Sysctl['net.bridge.bridge-nf-call-iptables'],
Sysctl['net.bridge.bridge-nf-call-ip6tables']
Expand Down

0 comments on commit 1e8ad6e

Please sign in to comment.