Equivalent debugging technique

The hiera command has now been completely replaced with the puppet lookup command, so we can run the following and use the --node argument to provide the node to which the lookup pertains:

$ puppet lookup --node mynode.example.local --debug mysetting

The key difference here is that the puppet lookup function will now query puppetdb to gather all the appropriate facts for the given node argument.

We can also now use the --explain argument to give a complete description of how Hiera fetches the data in its hierarchy.

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.