Thanks Corey,

On 15/07/10 10:35 AM, Corey Ralph wrote:
Hi Michael,

On 13/07/2010, at 4:12 PM, Michael Knox wrote:

exec {"/bin/date":
    subscribe =>  Vcsrepo["/tmp/repo"],
}

Does anyone have any suggestions on how I can get this to only refresh
when the repo is updated?

You need to add refreshonly => true to that exec.

Tried adding that, but it didn't make any difference. The issue is when puppet is processing the vcsrepo type, and before it processes the exec type (in this test, in production it will be a service).

From the log ...
notice: //Vcsrepo[/tmp/repo]/ensure: ensure changed 'present' to 'latest'
info: //Vcsrepo[/tmp/repo]: Scheduling refresh of Exec[/bin/date]

Vcsrepo has scheduled a refresh of the Exec when it shouldn't have (IMO), i.e. the svn checkout was already upto date and therefore hadn't changed.

Cheers
Mike

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