Re: [Puppet Users] Exec multiple conditions fail

2010-12-13 Thread Sandor Szuecs
Felix, On Dec 13, 2010, at 5:52 PM, Felix Frank wrote: > > Am I right to assume that > test -f /does_not_exist *always* returns 1 and > test -d / *always* returns 0? Yes. I should be more clear, because I need an \not\exists operator. If one or more conditions fail I want to run the command. B

Re: [Puppet Users] Exec multiple conditions fail

2010-12-13 Thread Felix Frank
On 12/13/2010 05:40 PM, Sandor Szuecs wrote: > Hi, > > I need to run an exec ressource if one of the conditions fail. > It seems not to work from puppet versions 0.25.4 to 2.6.4. > > # 1. try onlyif: > % puppet -e ' Exec { path => "/usr/bin:/bin:/usr/sbin:/sbin" } > exec { "run_rsn": > comm

[Puppet Users] Exec multiple conditions fail

2010-12-13 Thread Sandor Szuecs
Hi, I need to run an exec ressource if one of the conditions fail. It seems not to work from puppet versions 0.25.4 to 2.6.4. # 1. try onlyif: % puppet -e ' Exec { path => "/usr/bin:/bin:/usr/sbin:/sbin" } exec { "run_rsn": command => "touch /bar", onlyif => [ "test -f /does_not_exist