On Tuesday, August 14, 2012 12:34:45 PM UTC-7, R.I. Pienaar wrote:
>
>
>
> ----- Original Message ----- 
> > From: "Mitchell Hashimoto" <mitchell....@gmail.com <javascript:>> 
> > To: puppet...@googlegroups.com <javascript:> 
> > Sent: Tuesday, August 14, 2012 12:13:19 PM 
> > Subject: [Puppet Users] Testing Hiera Lookup with Puppet Master 
> > 
> > Hello, 
> > 
> > 
> > Is there an easy way to test hiera lookup for a node? A node is not 
> > getting the value I expect from Hiera and I want a way to test this. 
>
> It depends on what backends you use, the CLI cannot get access to the 
> data inside the puppet backend for example but for JSON/YAML it shouldd 
> work 
>
> My install lags a bit in versions and I do not have the inventory 
> service so its hard to say whats up with that, but given a /etc/hiera.yaml 
> that points to the right hiera db dir for json files I can do: 
>
> $ hiera key fact=val fact=val fact=val 
>
> the key being what you want and the kv pairs being the scope it will 
> pass through the hierarchy 
>
> you can also set your master to debug logging and you'll see it log every 
> lookup and what its trying 
>

Thanks, I think I'll go with the debug logging route for now. Is there a 
way in the "puppet.conf" file to enable debug logging?

Best,
Mitchell
 

-- 
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/-/JD0RUZ8zq-sJ.
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