Yeah, hiera() will bail the moment it finds an answer. I *think* that one 
correct answer can be an array or hash, but test it first. Or ask R.I.P.

hiera_array() and hiera_hash() are both additive, building out the array or 
hash from values at every level of the hierarchy.

On Tuesday, December 18, 2012 10:43:44 AM UTC-8, Philip Brown wrote:
>
>
>
> On Tuesday, December 18, 2012 10:28:35 AM UTC-8, Ellison Marks wrote:
>>
>> No, it's additive. It will get all the class names from all hierarchy 
>> levels that a host maps to. 
>
>
> Waaait a minute. Now I'm really confused about hiera :(
>
> I thought hiera was usually replacing, not additive.
>
> Or is it that single-value hiera lookups, are replacing, but array lookups 
> are additive?
>
> holy inconsistencies, batman!
> We almost implemented something wrong then. We were planning on using 
> hiera to pull a default array of NTP servers, but then override the default 
> list, if at a sattelite office.  But you're telling me that since it's an 
> array, it will add, not override? !
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/2l_SufwAsh8J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to