Bort

On Jul 14, 11:03 pm, bmort <propertywholesa...@gmail.com> wrote:
> Micheal,
>
> What directory and what file name did you put your test mainifest in?
>
The I have puppet-vcsrepo (which is simply a git clone from the repo)
in my $$modulepath.
Then in my test env I have that test manifest below in site.pp. This
test env is only for playing with vcsrepo.

In the env I'm building the vcsrepo types are declared  in the
relevant manifests. In this case my DNS management module as we have
all the zone files in SVN.

> On Jul 13, 2:12 am, Michael Knox <michael.knox...@gmail.com> wrote:
>
> > 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 thevcsrepotype
> > (http://forge.puppetlabs.com/puppetlabs/vcsrepo).
>
> > However when I subscribe to thevcsreporesource, 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://m...@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
>
>

-- 
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