debugging hiera

656 views
Skip to first unread message

ZJE

unread,
Aug 23, 2012, 1:04:22 PM8/23/12
to puppet...@googlegroups.com
Is there a way to check which data file(s) hiera is attempting to parse? I tried "puppet -d" with no luck.  I'm wanting to select the variable "dnsservers" based on a custom fact.

---
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find data item dnsservers in any Hiera data file and no default supplied at /etc/puppet/modules/dns/manifests/init.pp:3 on node testserver.lab.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
---

Thanks!

R.I.Pienaar

unread,
Aug 23, 2012, 1:07:18 PM8/23/12
to puppet...@googlegroups.com


----- Original Message -----
> From: "ZJE" <count...@gmail.com>
> To: puppet...@googlegroups.com
> Sent: Thursday, August 23, 2012 6:04:22 PM
> Subject: [Puppet Users] debugging hiera
>
> Is there a way to check which data file(s) hiera is attempting to
> parse? I tried "puppet -d" with no luck. I'm wanting to select the
> variable "dnsservers" based on a custom fact.

run the master in debug mode, check its log files

ZJE

unread,
Aug 23, 2012, 3:09:33 PM8/23/12
to puppet...@googlegroups.com


Thanks, that helps a lot! I used --no-daemonize to print debugging output to stdout as I couldn't find which log file it was going to. Normally, the puppet master logs to syslog, but I also checked everything in $vardir with no luck...

Thanks again for the great software!
Reply all
Reply to author
Forward
0 new messages