I've been following this discussion because I have also quickly hit the
point where I need to interpolate other hiera values.

Would it be possible to have % and ^ alias to a more descriptive
nomenclature?

Something like % == scope and ^ == hiera? With the previous example:
scope{potto01_ip} and hiera{potto01_ip}

Though I miss PERL (it's a joke people), I'm a big fan of readability and
the constant sigil wrangling isn't very readable for people new to the
language and makes maintenance from the unindoctrinated more difficult.

Thanks,

Trevor


On Wed, Jun 26, 2013 at 11:12 AM, Jesse Hathaway <[email protected]>wrote:

>
>>> I don't particularly like new syntax, but I do think it's possible to
>> make this work without introducing more magic or more syntax.
>>
>> What if we just used the existing sigil and searched the hiera hierarchy
>> before searching the Puppet scope?  Would this address the magic and syntax
>> concerns?
>>
>
> We decided to introduce the new sigil rather than use the existing '%'
> because we found it confusing to not know how the interpolation was going
> to be performed. I think it is better to be explicit in the syntax and know
> how the the interpolation is going to be performed. I prefer the shorter
> ^{potto01_ip} syntax as it makes the yaml/json configuration easier to read
> and mirrors the scope interpolation syntax %{potto01_ip}.
>
> --
> 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.
>
>
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
[email protected]

-- This account not approved for unencrypted proprietary information --

-- 
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.


Reply via email to