Thanks Dan.

I just confirmed that it works as expected on a full system called from
Puppet.

I'm not sure if bailing at the first hit was the right thing to do, but it
made sense to me.

Trevor


On Sun, May 4, 2014 at 8:21 PM, Dan Bode <[email protected]> wrote:

> thanks for your work on this, it was already on my TODO list. I will
> definitely be looking at this patch in the near future.
>
>
> On Mon, May 5, 2014 at 2:04 AM, Trevor Vaughan <[email protected]>wrote:
>
>> All,
>>
>> I've just patched Hiera to allow recursive lookups of Arrays and Hashes.
>>
>>
>> https://github.com/onyxpoint/hiera/commit/a00c9e4ef0e033d1012c95fda028412eeb425ce4
>>
>> For my uses, this patch works properly, however, it hasn't gotten buy off
>> from the Hiera team yet.
>>
>> This allows you to do the following:
>>
>> ---
>> foo :
>>   - 'one'
>>   - 'two'
>>
>> bar : %{hiera('foo')}
>>
>> Result:
>>
>> hiera foo => [ 'one', 'two' ]
>> hiera bar => ['one', 'two' ]
>>
>> There is no merging of arrays or hashes if you nest the entries and if
>> you use an array entry on the left hand side of a lookup you'll probably
>> end up with a Hiera entry that you can't reference.
>>
>> Thanks,
>>
>> Trevor
>>
>> --
>> 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 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/CANs%2BFoWdCC2vKmYqLxoBeUk2oSWpHSacB_3Mpsw%2B8D277fHnCg%40mail.gmail.com<https://groups.google.com/d/msgid/puppet-users/CANs%2BFoWdCC2vKmYqLxoBeUk2oSWpHSacB_3Mpsw%2B8D277fHnCg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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/CA%2B0t2Ly53sW6n_yxieRqFo5qSRFQQD9vZ%2BWtcXdNHiKv%3D1PU1A%40mail.gmail.com<https://groups.google.com/d/msgid/puppet-users/CA%2B0t2Ly53sW6n_yxieRqFo5qSRFQQD9vZ%2BWtcXdNHiKv%3D1PU1A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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 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/CANs%2BFoXbeLtiPg%3DTMnNU8F-EctrJB1t5x8mn%2B-O47mH2ahGxvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to