I'm working on upgrading to the Hiera 5 spec and moving away from our global config, but to do that I need to first make sure I have a working H5 config file, so I set to translating our current one using the Puppetlabs documentation.
I must be missing something critical because a slew of things get defined differently when I run with the H5 file so I haven't been able to cut over to it successfully yet.
Hiera 3 version:
---
:backends:
- yaml
:yaml:
:datadir: "/etc/puppetlabs/code/environments/%{::environment}/hieradata"
:hierarchy:
- "%{::hostname}"
- "%{::sitename}"
- common
Hiera 5 version:
---
version: 5
defaults:
datadir: hieradata
data_hash: yaml_data
hierarchy:
- name: "Per-node data"
path: "%{facts.hostname}.yaml"
- name: "Per-site data"
path: "%{facts.sitename}.yaml"
- name: "Other data"
paths:
- "common.yaml"
-----------
Am I missing something simple? Is there a good way to test (and the "debugging hiera" page is pretty much useless if you're at this point and are using environments to store your hiera data).