Hi

> [...]
> One or more objects that this object depends on. Changes in the subscribed to 
> objects result in the dependent objects being refreshed (e.g., a service will 
> get restarted). For instance:
> [...]
> Currently the exec, mount and service type support refreshing.
> 
> SO exec should work, am I wrong?

it does. However exec execs every time puppet runs, unless you specify
certain conditions. Like unless, onlyif or refreshonly.

And the latter is what you want. From:
http://reductivelabs.com/trac/puppet/wiki/TypeReference#exec

"refreshonly

The command should only be run as a refresh mechanism for when a
dependent object is changed. It only makes sense to use this option when
this command depends on some other object;"

and afterwards exactly the example you'd like to do is listed.

greets pete

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to