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<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 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://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.
--
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.
[0;37mdebug: Failed to load library 'selinux' for feature 'selinux'[0m
[0;37mdebug: Failed to load library 'ldap' for feature 'ldap'[0m
[0;37mdebug: Failed to load library 'shadow' for feature 'libshadow'[0m
[0;37mdebug:
/File[/Users/mike/puppet/etc/ssl/private_keys/mike-mbp.local.pem]:
Autorequiring File[/Users/mike/puppet/etc/ssl/private_keys][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/private_keys]: Autorequiring
File[/Users/mike/puppet/etc/ssl][0m
[0;37mdebug: /File[/Users/mike/puppet/var/state/classes.txt]: Autorequiring
File[/Users/mike/puppet/var/state][0m
[0;37mdebug: /File[/Users/mike/puppet/var/run]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/var/state/state.yaml]: Autorequiring
File[/Users/mike/puppet/var/state][0m
[0;37mdebug: /File[/Users/mike/puppet/var/log]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/public_keys]: Autorequiring
File[/Users/mike/puppet/etc/ssl][0m
[0;37mdebug: /File[/Users/mike/puppet/var/state/graphs]: Autorequiring
File[/Users/mike/puppet/var/state][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/private]: Autorequiring
File[/Users/mike/puppet/etc/ssl][0m
[0;37mdebug: /File[/Users/mike/puppet/var/state]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/var/client_yaml]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/certificate_requests]:
Autorequiring File[/Users/mike/puppet/etc/ssl][0m
[0;37mdebug: /File[/Users/mike/puppet/var/facts]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/puppet.conf]: Autorequiring
File[/Users/mike/puppet/etc][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/certs/mike-mbp.local.pem]:
Autorequiring File[/Users/mike/puppet/etc/ssl/certs][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/crl.pem]: Autorequiring
File[/Users/mike/puppet/etc/ssl][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/public_keys/mike-mbp.local.pem]:
Autorequiring File[/Users/mike/puppet/etc/ssl/public_keys][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/certs]: Autorequiring
File[/Users/mike/puppet/etc/ssl][0m
[0;37mdebug: /File[/Users/mike/puppet/var/lib]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl/certs/ca.pem]: Autorequiring
File[/Users/mike/puppet/etc/ssl/certs][0m
[0;37mdebug: /File[/Users/mike/puppet/var/clientbucket]: Autorequiring
File[/Users/mike/puppet/var][0m
[0;37mdebug: /File[/Users/mike/puppet/etc/ssl]: Autorequiring
File[/Users/mike/puppet/etc][0m
[0;37mdebug: Finishing transaction 2168956580 with 0 changes[0m
[0;37mdebug: Using cached certificate for ca, good until Tue Jul 07 10:14:03
UTC 2015[0m
[0;37mdebug: Using cached certificate for mike-mbp.local, good until Thu Jul
09 12:36:50 UTC 2015[0m
[0;37mdebug: Loaded state in 0.00 seconds[0m
[0;37mdebug: Using cached certificate for ca, good until Tue Jul 07 10:14:03
UTC 2015[0m
[0;37mdebug: Using cached certificate for mike-mbp.local, good until Thu Jul
09 12:36:50 UTC 2015[0m
[0;37mdebug: Using cached certificate_revocation_list for ca, good until [0m
[0;37mdebug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml;
using pson[0m
[0;32minfo: Caching catalog for mike-mbp.local[0m
[0;37mdebug: Puppet::Type::Vcsrepo::ProviderBzr: file bzr does not exist[0m
[0;37mdebug: Puppet::Type::Vcsrepo::ProviderHg: file hg does not exist[0m
[0;33mwarning: Found multiple default providers for vcsrepo: cvs, svn, git;
using cvs[0m
[0;37mdebug: Creating default schedules[0m
[0;37mdebug: Loaded state in 0.00 seconds[0m
[0;37mdebug: //Exec[/bin/date]/subscribe: subscribes to Vcsrepo[/tmp/repo][0m
[0;32minfo: Applying configuration version '1279000943'[0m
[0;37mdebug: //Vcsrepo[/tmp/repo]: Changing ensure[0m
[0;37mdebug: //Vcsrepo[/tmp/repo]: 1 change(s)[0m
[0;37mdebug: Puppet::Type::Vcsrepo::ProviderSvn: Executing '/usr/bin/svn
info'[0m
[0;36mnotice: //Vcsrepo[/tmp/repo]/ensure: Updating to latest '2210'
revision[0m
[0;37mdebug: Puppet::Type::Vcsrepo::ProviderSvn: Executing '/usr/bin/svn
update -r 2210'[0m
[0;36mnotice: //Vcsrepo[/tmp/repo]/ensure: ensure changed 'present' to
'latest'[0m
[0;32minfo: //Vcsrepo[/tmp/repo]: Scheduling refresh of Exec[/bin/date][0m
[0;37mdebug: //Exec[/bin/date]: Changing returns[0m
[0;37mdebug: //Exec[/bin/date]: 1 change(s)[0m
[0;37mdebug: //Exec[/bin/date]: Executing '/bin/date'[0m
[0;37mdebug: Executing '/bin/date'[0m
[0;36mnotice: //Exec[/bin/date]/returns: executed successfully[0m
[0;36mnotice: //Exec[/bin/date]: Triggering 'refresh' from 1 dependencies[0m
[0;37mdebug: //Exec[/bin/date]: Executing '/bin/date'[0m
[0;37mdebug: Executing '/bin/date'[0m
[0;37mdebug: Finishing transaction 2167679620 with 2 changes[0m
[0;37mdebug: Storing state[0m
[0;37mdebug: Stored state in 0.02 seconds[0m
[0;36mnotice: Finished catalog run in 4.37 seconds[0m