Re: [Puppet Users] vcsrepo type

2010-09-16 Thread Michael Knox
Alaric, I've just made a fix to the svn provider (and a related tidy up to the vcsrepo type) That change is available at: http://github.com/mikeknox/puppet-vcsrepo Cheers On 17/09/10 5:44 AM, Alaric wrote: Hi, I've been playing with the vcsrepo type and for the most part it works pretty we

[Puppet Users] vcsrepo type

2010-09-16 Thread Alaric
Hi, I've been playing with the vcsrepo type and for the most part it works pretty well, with the exception of ensure => latest/present with svn... when I ensure => present, it does what I expect, creates the working directory at whatever version the repo is currently at, and leaves it alone therea

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-15 Thread Michael Knox
Well to wrap this up, I've created a diff and submitted to the puppet-dev list (https://groups.google.com/group/puppet-dev/browse_thread/thread/6f6735933f362892?hl=en#). Code is available at http://github.com/mikeknox/puppet-vcsrepo/tree/bug/svn-update.

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-15 Thread James Turnbull
Michael Knox wrote: > ok, > So I think I now have it sorted ... > I've added an insync? method to the type to override the inherited > method, as well as making some tweaks in the svn provider. > Seems to work correctly now with svn so I'll tidy up my code and submit > a patch/diff. Michael Y

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-15 Thread Michael Knox
ok, So I think I now have it sorted ... I've added an insync? method to the type to override the inherited method, as well as making some tweaks in the svn provider. Seems to work correctly now with svn so I'll tidy up my code and submit a patch/diff. Cheers On 12/07/2010, at 11:12 PM, Mich

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-14 Thread Michael Knox
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 r

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-14 Thread Corey Ralph
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. Cheers Corey

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-13 Thread Michael Knox
James, On 14/07/10 1:13 AM, James Turnbull wrote: Michael Can you provide logs so I can see what's happening --debug please. Client debug log attached. There was nothing on the puppetmaster (also --debug). Thanks James Turnbull On 12/07/2010, at 11:12 PM, Michael Knox wrote: Hi all

Re: [Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-13 Thread James Turnbull
Michael Can you provide logs so I can see what's happening --debug please. Thanks James Turnbull On 12/07/2010, at 11:12 PM, Michael Knox 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 i

[Puppet Users] vcsrepo type, svn, & ensure => latest

2010-07-12 Thread Michael Knox
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 al