Mark your exec with "refreshonly => true".

On Mon, Jul 5, 2010 at 9:53 AM, Peter Berghold <[email protected]>wrote:

> Hi folks,
>
> I have a few rules in my manifests that take the form:
>
> file {
>         some-file:
>           source => "puppet://puppet/some/path",
>       -- etc--
> }
>
> exec {
>         sync-action:
>                cwd => "/some/path",
>                command=> "/some/command",
>                subscribe => [File[some-file]]
> }
>
> My intent is that anytime "some-file" is changed I trigger "sync-action".
>
> What I've discovered is that the sync action is being executed with every
> run of puppetd which for some sync actions could lead to trouble.
>
> What am I missing in terms of only triggering on a change?
>
>
>
> --
> Peter L. Berghold
> Owner, Shark River Technical Solutions LLC
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<puppet-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
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