Re: [Puppet Users] configuration version variable?

2012-04-09 Thread John Warburton
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.



[Puppet Users] configuration version variable?

2012-04-06 Thread psychobyte
Hi,

is there a fact or variable for the configuration version that I can access 
from hiera or my manifests? I'd like to embed it into my files.

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/y9V2HDKg-YQJ.
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.



Re: [Puppet Users] configuration version variable?

2012-04-06 Thread Patrick Debois
I've implemented that - See pull request - 
https://github.com/puppetlabs/hiera-puppet/pull/20


See 
https://github.com/jedi4ever/hiera-puppet/commit/2250a9825ea3382bb0518d77c4f5a8b97667f4a0 
for details


On 06/04/12 18:54, psychobyte wrote:

Hi,

is there a fact or variable for the configuration version that I can 
access from hiera or my manifests? I'd like to embed it into my files.


Thanks,

--
You received this message because you are subscribed to the Google 
Groups Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/y9V2HDKg-YQJ.

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.


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



Re: [Puppet Users] configuration version variable?

2012-04-06 Thread psychobyte
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.

Thanks.

On Friday, April 6, 2012 9:58:20 AM UTC-7, Patrick Debois wrote:

 I've implemented that - See pull request - 
 https://github.com/puppetlabs/hiera-puppet/pull/20

 See 

 https://github.com/jedi4ever/hiera-puppet/commit/2250a9825ea3382bb0518d77c4f5a8b97667f4a0
  
 for details

 On 06/04/12 18:54, psychobyte wrote:
  Hi,
 
  is there a fact or variable for the configuration version that I can 
  access from hiera or my manifests? I'd like to embed it into my files.
 
  Thanks,
 
  -- 
  You received this message because you are subscribed to the Google 
  Groups Puppet Users group.
  To view this discussion on the web visit 
  https://groups.google.com/d/msg/puppet-users/-/y9V2HDKg-YQJ.
  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.



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/2dck78zcrOgJ.
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.