Displaying 2 results from an estimated 2 matches for "knowshantanu".
2012 Apr 25
5
exec's onlyif parameter fails for a bash one-liner
I would like to ''exec'' an installation script ''onlyif'' an installation
directory is empty. I tried using following bash one-liner however it
didn''t work:
<code>
exec{$one_install_script:
require => File[$one_install_script],
onlyif => "[ \"$(/bin/ls -A $one_location)\" ] && exit 1 || exit
0"
}
2012 Apr 09
7
validate_re validation failures
I am using stdlib module''s validate_re function to validate parameters
passed to a parameterized class as pasted here: http://pastebin.com/7eYAeLEa
.
The validation works fine however when I run this manifest locally
using ''puppet apply'' command where puppet execution stops if a
validation test fails. However when I use it in client-server model
then I do see a