> On Sep 27, 8:44 pm, Jo Rhett <jrh...@netconsonance.com> wrote:
>> You can't do that, as the IF code is resolved by the puppet master before 
>> delivering the compiled catalog to the client.  It looks like you want to 
>> just make a shell script, push it to the client and run it there.

On Sep 28, 2011, at 7:03 AM, jcbollinger wrote:
> Sorry, no.  If statements are not recognized inside resource
> declarations, which is where the shell code would need to be
> (preferably in the value of the 'command' property, but possibly in
> the Exec title).

Your second sentence is a conditional without a result but I think I know what 
you meant, and we were talking about different things.  I read his example as 
wanting to use a shell test to determine whether to execute a puppet closure, 
which really isn't possible.  Yes, the entire if/do should be put inside a 
shell script and run locally ;-)

-- 
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source and other 
randomness

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to