Hey @Charlie, thanks for this post. I had been looking for this 
functionality for a while now. It works like a charm

Am Donnerstag, 27. Februar 2014 04:08:27 UTC+1 schrieb Charlie Sharpsteen:
>
> On Wednesday, February 26, 2014 2:19:23 PM UTC-8, [email protected] 
> wrote:
>>
>> I have been doing some experimenting with Puppet + Hiera with some of my 
>> hashes, but when it is going through my hierarchy it is returning whatever 
>> hash it hits first and skipping the others.
>>
>> For my node 'sandbox1'
>>
>> sandbox.pp:
>>
>> node /^sandbox\d+/ {
>>   class { 'php':}
>>   notify { 'PHP hash':
>>     message => hiera('php::augeas',{})
>>   }
>>   $php_settings = hiera('php::augeas',{})
>>   create_resources('php::augeas',$php_settings)
>> }
>>
>>
>
> The `hiera` lookup function only returns the first key it finds --- which 
> is the behavior you are observing. For hash merge lookup, you will need to 
> use the `hiera_hash` function in your manifest instead of `hiera`.
>
> For full details, see the docs on Hiera lookup functions:
>
> http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions
>
> Hope this helps!
>
> -Charlie
>

-- 
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/b3d6fca1-711e-406c-a089-37f28b2dde8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to