Ask Your Question
0

Hiera interpolation

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

jondoe gravatar image

Hi,

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

some_key : '${some.path.in.moustaches}\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 {some.path.in.moustaches} 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

Thanks

edit retag flag offensive close merge delete

Comments

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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.

Thanks

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

Stats

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

Seen: 108 times

Last updated: Apr 30 '15