diff --git a/manifests/init.pp b/manifests/init.pp index 70e2ee5..4e54020 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -90,7 +90,7 @@ $qvalue = shellquote("${value}") # lint:endignore exec { "enforce-sysctl-value-${qtitle}": - unless => "/usr/bin/test \"$(/sbin/sysctl -n ${qtitle})\" = ${qvalue}", + unless => "/usr/bin/test \"$(/sbin/sysctl -n ${qtitle}|/usr/bin/tr '\t' ' ')\" = ${qvalue}", command => "/sbin/sysctl -w ${qtitle}=${qvalue}", } } diff --git a/metadata.json b/metadata.json index 5283850..9048001 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "thias-sysctl", - "version": "1.0.6", + "version": "1.0.7", "author": "Matthias Saou", "license": "Apache-2.0", "summary": "Sysctl module", diff --git a/tests/init.pp b/tests/init.pp index 99a6e38..54a117d 100644 --- a/tests/init.pp +++ b/tests/init.pp @@ -7,3 +7,4 @@ value => '|/scripts/core-gzip.sh /var/tmp/core/core.%e.%p.%h.%t.gz', comment => 'wrapper script to gzip core dumps', } +sysctl { 'kernel.printk': value => '4 4 1 7' }