On Oct 6, 2009, at 1:00 PM, James Turnbull wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Luke Kanies wrote: >>>>> You seem to imply that that's already possible with 0.25? I seem >>>>> do >>>>> have >>>>> missed that. Any pointers to docs? >>>> What are these 'docs' you mention? :) >>>> >>>> http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference >>>> >>>> Look for 'config_version'. >>> Ah, yes O:-) >>> >>>> It should have been mentioned in the change log and release notes >>>> and >>>> stuff. >>> It's neither mentioned in the release notes >>> (http://reductivelabs.com/trac/puppet/wiki/ReleaseNotes) nor the >>> CHANGELOG (http://projects.reductivelabs.com/projects/puppet/ >>> changelog). >>> I've checked now. >> >> Hrm. This must be my fault. > > Had an inkling this feature existed - I think we very briefly > discussed it once but had no idea how it works. Can someone add > something to a wiki page? Perhaps the version control one? And add > a section to the ReleaseNotes page please? > > Or tell me enough about it so I can.
It's very straightforward - you provide a command in the 'config_version' setting, and Puppet runs that command at compile time to determine the config version. This version then gets attached to the catalog and, by extension, to all resources. When these resources create logs, the version is attached to the log instances (not in syslog, but the actual objects in memory, which get serialized and sent in the report to the server). So, basically, you now have a way to correlate every log message you receive to a specific configuration version. You just have to define what 'configuration version' means to you. If you don't provide a command, then the compile time is used. -- A classic is something that everybody wants to have read and nobody wants to read. -- Mark Twain --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en -~----------~----~----~----~------~----~------~--~---
