Hi All,

First I want to apologize, I never completely dove into the fine details of 
puppet. I just use it on my network of +-100 VMs for odd jobs.

my question is: I know how to set up a class that would, for example, 
install a package on a machine based on a facter variable (e.g. operating 
system version). 
within the curly braces I can even put a list of operation that would all 
not be run if the machine in question does not conform to the specific 
variable.

I am looking for a way to do something similar using something like if a 
file on the host exists (similar to the 'onlyif' that is available in the 
exec type).

my dream is:

class foo{
               onlyif "test[ condition ]" {
                                     file{.....}
                                     exec{.......}
               }
}

I hope the question was clear enough, 
Thanks,
Itamar

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/oy8XRwYTXzYJ.
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