From 1e8ad6e2c44db3b192c08a6ea6ca17f9c7e54a65 Mon Sep 17 00:00:00 2001 From: Alexander Olofsson Date: Wed, 12 Apr 2023 18:51:15 +0200 Subject: [PATCH] Allow missing sysctl keys The augeas provider prefetches them before the module has a chance to load, so use the silent parameter instead. --- manifests/node/kubelet.pp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/manifests/node/kubelet.pp b/manifests/node/kubelet.pp index ff32af3..d69015b 100644 --- a/manifests/node/kubelet.pp +++ b/manifests/node/kubelet.pp @@ -181,6 +181,7 @@ sysctl { default: ensure => $ensure, + silent => true, value => '1'; 'net.bridge.bridge-nf-call-iptables': @@ -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']