Add a literal function to hiera to allow characters to be included without special interpretation.
I have some data that contains Apache variables (such as %
in a Hiera file (Yaml backend). However, when I retrieve the value, the string is replaced with
empty value. For instance, for:
I got the value "http//"
I found out that during the lookup in the YAML backend, the answer is parsed and Hiera
tries to resolve the variable or replace it by an empty string if the variable is not found.
We should have a way to escape this from any String or disable the variable resolution
completely in the order to get the correct value.
What about escaping with "\" character?
So, if we have this data in Hiera file:
We get the correct string: