On Thursday 4 April 2013 at 02:39, Matthaus Owens wrote:
> ========================
> ## Hiera 1.2.0 Release Notes ##
> ========================
> # Features
>  
> Add deep-merge feature to backend lookups
>  
> - Config option :merge_behavior => :native|:deep|:deeper
> - Add optional requirement on deep_merge gem to support
> :deep and :deeper options
> - Update Yaml backend to use Backend.merge_answer
> - Update Json backend to use Backend.merge_answer

So if I understood it correctly the difference is when the values are 
unmergeable and :deeper will give the value from the higher (more specific) 
hierarchy level while :deep will instead give the value from the lower (less 
specific) hierarchy level. Correct?

I don't really see the point of the :deep option then as the point of hiera is 
to give the most specific answer for the node in question.

But could be nice to at least log a warning or something when this happens.
And also document the two options a bit more :)
> (#17434) Detect loops in recursive lookup
>  
> The recursive lookup functionality was vulnerable to infinite recursion
> when the values ended up referring to each other. This keeps track of
> the names that have been seen in order to stop a loop from occuring. The
> behavior for this was extracted to a class so that it didn't clutter the
> logic of variable interpolation. The extracted class also specifically
> pushes and pops on an internal array in order to limit the amount of
> garbage created during these operations. This modification should be
> safe so long a new Hiera::RecursiveLookup is used for every parse that
> is done and it doesn't get shared in any manner.
>  
> (#17434) Support recursive interpolation
>  
> The original code for interpolation had, hidden somewhere in its depths,
> supported recursive expansion of interpolations. This adds that support
> back in.

So, is this for expansion of a variable that gives another string that should 
do variable expansion?

Not recursive hiera lookups? (which would be really nice, especially in 
backends that don't support references)

--  
Erik Dalén



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to