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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to