duritong/puppet-sysctl — Issue #1: values with spaces are causing errors
Author: doggi79
Created: 2012-01-17 09:39:02+00:00
State: open

err: /Stage[main]/Sysctl::Oracle/Sysctl::Value[kernel.sem]/Exec[exec_sysctl_kernel.sem]/returns: change from notrun to 0 failed: /sbin/sysctl kernel.sem=250 32000 100 128 returned 255 instead of one of [0] at /etc/puppet/modules/sysctl/manifests/init.pp:11

This problem can be solved by adding escaped quotes to the $value in the command line

exec { "exec_sysctl_${name}":
command => "/sbin/sysctl ${name}=\"${value}\"",
refreshonly => $refresh,
}