On Tuesday, May 6, 2014 3:36:13 PM UTC+1, jcbollinger wrote:
>
>
>
>
> Using hiera_array() does ensure that the value retrieved is an array, but 
> it's not at all what you want for this job or for either data structure.  
> In this case, the returned array will contain one element -- the same hash 
> that would be returned by the ordinary hiera() function.  If the 
> 'rpm_mon_base_pack' key appeared at multiple levels of your hierarchy, then 
> the array returned by hiera_array() would contain the values from the other 
> levels, too -- *that's* the main purpose of the funciton.
>
>
Just noticed the typo: I was actually using hiera_hash() in stead of 
hiera_array(). This is for reason - I have four environments and the idea 
is override the default values from the environment specific yaml. Using 
:merge_behavior: 
deeper to merge  the values levels.

Best,
San


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e7a27cbe-9843-46f7-9ae7-bf29ccdd6ed6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to