Mark your exec with "refreshonly => true".
On Mon, Jul 5, 2010 at 9:53 AM, Peter Berghold
<salty.cowdawg@gmail.com>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 puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
>
puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@googlegroups.com>
> .
> 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 puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.