hiera -c --debug crashing

asked 2018-08-06 13:52:41 -0500

I am trying to debug why some files in :heirarchy do not appear to be picked up by hiera.

To try to debug this, I wanted to dump out the hierarchy variable. But puppet lookup :heirarchy returns nothing.

To debug that, I tried the following: hiera -c /etc/puppetlabs/puppet/hiear.yaml --debug :hieararchy. When I run that I get the following error:

/opt/puppetabs/puppet/lib/ruby/vendor_ruby/hiera/puppet_logg.rb:13 in `debug': undefined method debug for Puppet:Module (NoMethodError) from /opt/puppetlabs/puppe/lib/ruby/vendor_ruby/hiera/fallback_logger.rb: in ` debug` ...

Any ideas what to do to

A) Get heira --debug to work?

B) Debug why some files in what looks like my :heirarchy are working, and some are not.

I am using Puppet (free edition) 4.8.2 and Hiera 3.2.2


edit retag flag offensive close merge delete