(<unknown>): did not find expected key while parsing a block mapping
Hi,
I know this question was posted many times. but I have no clue how to find out solution. I am getting below error in agent.
(<unknown>): did not find expected key while parsing a block mapping
at line 5
column 3
Below is my hiera.yaml file
---
:backends:
- yaml
:yaml:
:datadir: /etc/puppet/hiera
:hierarchy:
- '%{::env}/test/nodes'
- '%{::env}/test/sudo'
I tried run with --trace but it is not giving much, printing same error.
What are you trying to do? A bit more info would be nice. Did you try using hiera from the command line to check if it ouputs the data you think it does? hiera -d (your key) environment=(your env).