Hi, No, not directly. Compilation takes place on the master and so that is where these tests would run.
What you need is a fact or use an exec. The fact will tell the master what the client has; an exec will run on the client where the test will execute. Cheers, Den On 26/04/2013, at 3:50, Kubes <[email protected]> wrote: > Does puppet have a similar syntax in a manifest? > > if [ -f /somefile ] { > ... > } > > Looking to test for -d -p -b, etc > > I know that exec has this feature, but am looking to conditionally mount. I > have thought of other use cases too. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
