On 7 April 2012 03:12, psychobyte <psychob...@gmail.com> wrote:

> Thanks for the reply Patrick but, I should have been more specific.
>
> I wanted the "puppet configuration version" as in
>
> info: Applying configuration version '1333729957'
>
> So any file that gets manipulated by puppet has it in a header.
>
>
This is a good question - its been on my to do list for a while.

http://docs.puppetlabs.com/guides/faq.html#are-there-variables-available-other-than-those-provided-by-facter

ok - looks good

% vi local_puppet_info.erb
#
# Puppet server:
    modulepath:  <%= scope.lookupvar('settings::modulepath') %>
    manifest:    <%= scope.lookupvar('settings::manifest') %>
    manifestdir: <%= scope.lookupvar('settings::manifestdir') %>
    config_version:  <%= scope.lookupvar('settings::config_version') %>

yields:
#
# Puppet server:
    modulepath:  /local/file-repo/lab/modules
    manifest:    /local/file-repo/lab/manifests/site.pp
    manifestdir: /local/file-repo/lab/manifests
    config_version:  cat /local/file-repo/lab/version

Oh noes - well its correct but doesn't return what I really want:

info: Applying configuration version 'lab-r49068'

I suspect Patrick's hiera magic may have the same issue

Any suggestions where we go from here?

John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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