Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the course of attempting to debug my puppet manifests numerous times after bundling it with hiera, sometimes I doubt whether the correct hiera lookup is even being performed.

I am mostly using CentOS with Puppet 3.

Is there any tool I can use to find out what hiera data file is currently being utilized for the node I am on, as opposed to trying to guess based on my server config?

share|improve this question
Have you tried verbose output with puppet – Drew Khoury Oct 16 '13 at 6:56
How do I do that? – xiankai Oct 16 '13 at 7:12
Pass -v when running puppet – Drew Khoury Oct 16 '13 at 7:55
Seems like it also puts green notices in the output, lets me know where the facts are loaded, but no luck with hiera. – xiankai Oct 17 '13 at 16:58
up vote 7 down vote accepted

On the server hosting your puppet master, run puppet master --debug --compile | grep hiera

share|improve this answer
Thanks for the answer, I'm not sure that would work if I'm running a headless puppet? I'm currently trying out puppet on vagrant. – xiankai Oct 17 '13 at 16:57
I ended up using just the --debug flag, which does indeed show the hiera lookup and what backend it is looking at. – xiankai Nov 20 '13 at 8:05
@xiankai Please add some evidence. – 030 Dec 12 '14 at 11:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.