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.

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).  Moreover, the shell code needs to be quoted anyway
to feed it to Puppet, and doing so would prevent Puppet from
interpreting anything in it even if it were somewhere where Puppet
might otherwise consider doing so.


John

-- 
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