>
>
>> 'the data is %{lookup(a_key)}'
>>
>>
>> Expanding hiera interpolations to allow this would actually also allow
>> another thing that is asked for:
>> https://projects.puppetlabs.**com/issues/16235<https://projects.puppetlabs.com/issues/16235>
>>
>> If the %{} syntax allowed more complex expressions then I could see this
>> being used to specify a literal value in order to achieve "escaping". So
>> in order to get %{SERVERNAME} in the value of a hiera lookup (which
>> isn't possible right now) you could do something like:
>> %{literal('%{SERVERNAME}')}
>>
>>
> hm, no escaping? I would expect \% to escape a % etc. like everywhere else.
>
>
Not in hiera 1.0. If we started allowing \% to mean a literal % then
existing hiera data we would hit the situation where a windows path in the
data would suddenly stop interpolating. If we hold off for a hiera2 to do
these kinds of changes, then I would rather have "\" escaping, which is
much more understood and probably expected.
I was just pointing out that if we did my suggestion then we could have the
literal % in hiera 1
>
> - henrik
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> puppet-dev+unsubscribe@**googlegroups.com<puppet-dev%[email protected]>
> .
> To post to this group, send email to [email protected].
> Visit this group at
> http://groups.google.com/**group/puppet-dev<http://groups.google.com/group/puppet-dev>
> .
> For more options, visit
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>
--
Andrew Parker
[email protected]
Freenode: zaphod42
Twitter: @aparker42
Software Developer
*Join us at PuppetConf 2013, August 22-23 in San Francisco - *
http://bit.ly/pupconf13*
**Register now and take advantage of the Early Bird discount - save 25%!*
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-dev.
For more options, visit https://groups.google.com/groups/opt_out.