Ask Your Question

Hiera interpolation

asked 2015-04-29 10:38:27 -0600

jondoe gravatar image


In one of my yaml config files, i have the following data

some_key : '${}\my\path'

when running my recipe, the hiera parser raises an error:

Error: Could not run: (<unknown>): did not find expected key while parsing a block mapping

My guess is that hiera is trying to interpolate {} and fails to do so. So my question would be: is there a way to escape {} or disable interpolation all together.

I am running puppet agent 3.7.1 and hiera 1.3.4


edit retag flag offensive close merge delete


The error message seems like one that is thrown by the YAML parser when it receives malformed input --- before Hiera even does any processing. We would need to see a minimal example of the failing file to determine if this is a YAML error or a Hiera error.

csharpsteen gravatar imagecsharpsteen ( 2015-04-29 11:25:05 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-30 03:24:42 -0600

jondoe gravatar image

hi, there was a problem with one of my strings with "". i wrongly thought it was related to interpolation. Now it is fixed.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-04-29 10:38:27 -0600

Seen: 119 times

Last updated: Apr 30 '15