7

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?

4
  • Have you tried verbose output with puppet Oct 16, 2013 at 6:56
  • How do I do that?
    – xiankai
    Oct 16, 2013 at 7:12
  • Pass -v when running puppet Oct 16, 2013 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, 2013 at 16:58

1 Answer 1

9

On the server hosting your puppet master, run puppet master --debug --compile yournode.example.com | grep hiera

3
  • 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, 2013 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, 2013 at 8:05
  • @xiankai Please add some evidence.
    – 030
    Dec 12, 2014 at 11:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .