Hi all,
We have some data in SVN repos and I'd like puppet to ensure that a) the
latest copy is checked out, and b) reload a service if it is updated.
So I've configured the vcsrepo type
(http://forge.puppetlabs.com/puppetlabs/vcsrepo).
However when I subscribe to the vcsrepo resource, it is always
refreshed, irrespective of whether the repository is upto date or not.
I'd prefer not to reload the service everytime puppet runs on the client.
My test manifest ...
vcsrepo { "/tmp/repo":
ensure => latest,
provider => svn,
source => "svn+ssh://me@host/repo",
}
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?
I've tried looking at how it is done in the file and package types, but
my ruby/puppet architecture knowledge is not yet upto that.
Thanks
Can you provide logs so I can see what's happening --debug please.
Thanks
James Turnbull
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
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?
Cheers
Michael
Yes I thought that would be the issue - the same problem existed in the
Git provider. Was intending to look at the code but other things came up.
Happy to take patches.
Thanks
James Turnbull
--
Puppet Labs - http://www.puppetlabs.com
C: 503-734-8571