loadyaml resolving interpolated variables / functions

asked 2018-07-05 05:14:05 -0600

robinshlee gravatar image

Hi, I love how within Hiera I can do lookups to other variables within the same or other Yaml in the hierarchy. However when I used loadyaml function in stdlib, that feature is lost - the "%{lookup('var','')}" remained as-is and not resolved to the actual variable value. Is there any other way to do so?

edit retag flag offensive close merge delete

Comments

The yaml isn't 'executed', it is interpreted.. There are ways to create your own hiera backends that can do things like execute functions, but I haven't had a chance to work with a modern puppet platform (4/5) that has the capability

DarylW gravatar imageDarylW ( 2018-07-05 06:49:32 -0600 )edit