You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- for example, which might include text such as `%{SERVER_NAME}`. For example:+ for example, which might need to contain the string `%{SERVER_NAME}`. In order to accomplish this, you'll need to remove the braces and use the `literal` function, for example:
Suppose it depends if the target supports the form without braces. I guess httpd does but others might not.
I actually started using this for Logback config to output things like %mdc{trace_id} until I realised that this particular syntax doesn't trigger Hiera's interpolation and can be written as-is, I guess because the % and the { are separated.
Describe the Change You Would Like
The documentation for the Hiera
literal
function says this:The latter example works fine - the issue is with "such as %{SERVER_NAME}". A reasonable reader would then expect to be able to do this:
but it fails (tested in Hiera from Puppet 8.6.0):
This may be as expected behaviour but in that case the documentation should demonstrate how to work around this, such as
The text was updated successfully, but these errors were encountered: