Puppet – Hiera Error

As mentioned here: https://ask.puppet.com/question/22498/error-400-on-server-could-not-find-data-item-nfsexports-in-any-hiera-data-file-and-no-default-supplied-at/

I was getting 400 error as puppet not able to find hiera value..

  1. YAML files strictly follows indentation – I’ve copied and pasted values from different values which has placed ‘TAB’ instead of spaces. Find the tab and replace with spaces.
#grep -P '/t' -r * <all hiera yaml files>

On puppet master run

puppet master --compile <your host FQDN> --environment=<your host environment> --debug |grep hiera

2. One more issue I’ve found using Hiera along with Foreman. Duplicating hiera values, overriding in foreman confused puppet so check all possible causes.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s