Puppet: System Administration Automated

Support

Ticket #1134: lib_puppet_type_exec.patch

File lib_puppet_type_exec.patch, 0.7 kB (added by mike, 9 months ago)
  • a/lib/puppet/type/exec.rb

    old new  
    384384 
    385385                Note that this command follows the same rules as the main command, 
    386386                which is to say that it must be fully qualified if the path is not set. 
     387 
     388                Also note that onlyif can take an array as its value, eg: 
     389                    onlyif => [\"test -f /tmp/file1\", \"test -f /tmp/file2\"] 
     390 
     391                This will only run the exec if /all/ conditions in the array return 
     392                true. 
     393         
    387394                " 
    388395 
    389396            validate do |cmds|