Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 1 down vote accepted

On the server hosting your puppet master, run puppet master --debug --compile yournode.example.com | 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
add comment

Your Answer

 
discard

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.