I definitely did not restart httpd, but I can try that the next time I 
encounter this issue.

On Thursday, May 9, 2013 11:48:40 AM UTC-7, Ygor wrote:
>
> I use Passenger also. 
> You need to restart the httpd for the change to kick in. 
>
> Is that what happened ? 
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere 
> in the universe is that none of it has tried to contact us.” 
> Bill Waterson (Calvin & Hobbes) 
>
> ----- Original Message ----- 
> From: "Campee" <cam...@gmail.com <javascript:>> 
> To: puppet...@googlegroups.com <javascript:> 
> Sent: Thursday, May 9, 2013 2:46:19 PM 
> Subject: Re: [Puppet Users] Re: hiera can't see a value on a puppet 
> client, but the hiera app on the server can 
>
> I am running httpd + passenger. The puppetmaster service is turned off and 
> not running. Do I need to restart httpd instead or does this not apply if 
> you're running httpd? 
>
> On Thursday, May 9, 2013 11:36:34 AM UTC-7, Ygor wrote: 
>
> Did you restart your puppetmaster process ? 
>
> If you made any change to your config file (/etc/puppet/hiera.yaml) you 
> need to restart the puppetmaster process for the updates to be in effect. 
>
> I spun my wheels a bit before that sunk in for me :) 
>
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere 
> in the universe is that none of it has tried to contact us.” 
> Bill Waterson (Calvin & Hobbes) 
>
> ----- Original Message ----- 
> From: "Campee" < cam...@gmail.com > 
> To: puppet...@googlegroups.com 
> Sent: Thursday, May 9, 2013 2:19:01 PM 
> Subject: [Puppet Users] Re: hiera can't see a value on a puppet client, 
> but the hiera app on the server can 
>
> Thanks for telling me about the debug option. 
>
> ericc@ops1-2-qa-sjc:puppet$ hiera -c /etc/puppet/hiera.yaml 
> ak_auth_primary region=northamerica datacenter=sjc environment=qa 
> machinetype=qa hostname=tag5-4-qa-sjc --debug 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Hiera YAML backend starting 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Looking up ak_auth_primary in YAML 
> backend 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Looking for data source 
> regions/northamerica/datacenters/sjc/qa/qa/tag5-4-qa-sjc/tag5-4-qa-sjc 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Cannot find datafile 
> /etc/puppet/hieradata/regions/northamerica/datacenters/sjc/qa/qa/tag5-4-qa-sjc/tag5-4-qa-sjc.yaml,
>  
> skipping 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Looking for data source 
> regions/northamerica/datacenters/sjc/qa/qa/qa 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Cannot find datafile 
> /etc/puppet/hieradata/regions/northamerica/datacenters/sjc/qa/qa/qa.yaml, 
> skipping 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Looking for data source 
> regions/northamerica/datacenters/sjc/qa/qa 
> DEBUG: Thu May 09 11:04:27 -0700 2013: Found ak_auth_primary in 
> regions/northamerica/datacenters/sjc/qa/qa 
> ops1-1-qa-sjc 
>
> I ran Puppet again this morning on my client and now it works. I was 
> thinking that this indicates that the client was caching the manifest, even 
> though I was using the --test option when running Puppet manually on my 
> client. It was my understanding that --test tells the Puppet client not to 
> use a cached catalog. 
>
> Any theories as to why it would work today even though I haven't changed a 
> single thing? (honestly!) 
>
>
> On Thursday, May 9, 2013 1:04:23 AM UTC-7, Luke Bigum wrote: 
>
>
> Hi Campee, 
>
> On Thursday, May 9, 2013 3:34:20 AM UTC+1, Campee wrote: 
>
>
>
>
>
> I run puppet and get this error: 
>
> err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Could not find data item ak_auth_primary in any Hiera data file and no 
> default supplied at /etc/puppet/manifests/site.pp:11 on node 
> tag5-4-qa-sjc.domain.net 
>
> on my puppet master server: 
>
> $ hiera ak_auth_primary region=northamerica datacenter=sjc environment=qa 
>
> Answer: ops1-1-qa-sjc 
>
> $ hiera ak_auth_primary region=northamerica datacenter=sjc environment=qa 
> machinetype=tag hostname=tag5-4-qa-sjc 
>
>
>
>
> Can you test Hiera like this (on your Puppet Master), it uses the Facts 
> cache of your node, rather than you filling in all the gaps by hand, and 
> thus is a more thorough test: 
>
>
> hiera -c /etc/puppet/hiera.yaml -y /var/lib/puppet/yaml/facts/ 
> tag5-4-qa-sjc.domain.net .yaml ak_auth_primary --debug 
>
>
> You should get some helpful debug trace through what Hiera is doing and 
> what data files it is trying to open, in order: 
>
>
>
> DEBUG: Thu May 24 13:18:53 +0000 2012: Hiera JSON backend starting 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Looking up key 'ak_auth_primary' in 
> JSON backend 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Backend datadir for json is an 
> Array, multiple data dirs to search 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Looking in data dir 
> /etc/puppet/private/ 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Looking at hierarchy source 
> tag5-4-qa-sjc.domain.net 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Cannot find datafile 
> /etc/puppet/private/tag5-4-qa-sjc.domain.net.json, skipping 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Looking at hierarchy source common 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Cannot find datafile 
> /etc/puppet/private/common.json, skipping 
> DEBUG: Thu May 24 13:18:53 +0000 2012: Looking at hierarchy source 
> tag5-4-qa-sjc.domain.net 
>
>
> -Luke 
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group. 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users...@googlegroups.com . 
> To post to this group, send email to puppet...@googlegroups.com . 
> Visit this group at http://groups.google.com/group/puppet-users?hl=en . 
> For more options, visit https://groups.google.com/groups/opt_out . 
>
>
>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group. 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users...@googlegroups.com <javascript:>. 
> To post to this group, send email to puppet...@googlegroups.com<javascript:>. 
>
> Visit this group at http://groups.google.com/group/puppet-users?hl=en . 
> For more options, visit https://groups.google.com/groups/opt_out . 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to