Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-23 Thread Evan Stachowiak
I managed to sort this out by checking out the latest hiera-puppet and upgrading the hiera & hiera-puppet gems to 1.0.1.0rc4 & 1.01.0rc3 respectively. After updating hiera-puppet, be sure to restart the puppet master. If you do not update hiera & hiera-puppet gems, you may encounter the error:

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-22 Thread Evan Stachowiak
I'm running into the same issue on Ubuntu 10.04, hiera 0.3.0, puppet 2.7.18, ruby187. Hiera can lookup values, but only if there is no variable interpolation in /etc/puppet/hiera.yaml. :hierarchy: - '%{operatingsystem}' - common will give this error: err: Could not retrieve catalog from remote

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-17 Thread linuxbsdfreak
Hi, I figured that out and did the changes to verify. However it doesn't parse the hierarchy to override the values. I did a quick test to only use the operatingsystem fact in hierarchy. It doesnt pickup the value from it also. Even though the machine is CentOS. I dont know if hiera 0.3.0 wo

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-17 Thread denmat
Sorry, your hiera config points to: -'%{operatingsystem}' - '%{platform}/%{location}/%{role} - common role But the facts you have are: company_role company_platform company_location So unless you have facts platform, location, and role defined they aren't going to m

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-17 Thread linuxbsdfreak
Just for info i am running ruby-1.9.3p194. On Friday, August 17, 2012 9:28:13 AM UTC+2, linuxbsdfreak wrote: > > Hi, > > The default value works when i set the value in common.yaml. Strange part > is why isnt hiera find the value in the hierarchy, since i want to override > the default value ac

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-17 Thread linuxbsdfreak
Hi, The default value works when i set the value in common.yaml. Strange part is why isnt hiera find the value in the hierarchy, since i want to override the default value according to a facter fact. Regards, Kevin On Friday, August 17, 2012 2:57:03 AM UTC+2, denmat wrote: > > Hi, > > Can't s

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-16 Thread denmat
Hi, Can't see anything that stands out in the quick glance, but here's how you can dig further: Use --debug on your puppet run and you'll get an output of what hiera is going through. Second, use notify to print out the variables you are trying to access, making sure they match with what hiera is

[Puppet Users] Re: Hiera unable to retrieve the value

2012-08-16 Thread linuxbsdfreak
Typo error location=frankfurt is actually location=london. On Thursday, August 16, 2012 5:25:17 PM UTC+2, linuxbsdfreak wrote: > > Hi All, > > I am using hiera for storing configuration values. I have setup puppet to > use facter following the article from > > http://nuknad.com/2011/02/11/self-c