Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hiera files, fqdn and windows nodes


We are managing our systems using hiera files. Systems consists of both windows and linux machines.

We generate all the system configuration files (including hiera files) before even system is build and then use all that info to automate deployment of the system. Hiera files are named based on fqdn. E.g. In case of windows machines, hiera file names are generated with capital case for machine name: e.g., And when system is built all windows machines indeed have their name in capital case. Except, for some reason, sometimes (we were not able to figure out why), some machine names are in lower case: (and we cannot rename the machine to capital as windows doesn't see the difference, it is especially problem when this happens with domain controllers).

When this happens puppet doesn't see the hiera files (which are always in capital as they are pre-generated). And exits with an error.: "Could not find data item classes in any Hiera data file and no default supplied at /etc/puppet/manifests/site.pp"

So my question: Is there a way to tell puppet to ignore cases when looking for hiera files for windows machines?

Any suggestions are welcome.

Thanks, Tina