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?

xiankai
  • 173
  • 1
  • 4

1 Answers1

9

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

sciurus
  • 12,493
  • 2
  • 30
  • 49
  • 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 08:05
  • @xiankai Please add some evidence. – 030 Dec 12 '14 at 11:10