All, Apologies for this, but apparently, the patch that I put together is stopping one level too high on some queries.
Pleas disregard. Thanks, Trevor On Sun, May 4, 2014 at 12:04 PM, 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 -- > -- 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%2BFoXcg-ZYZQ68YRfQMqhwLCmYOSt5-xbC5UpDbkoo%2BDvX1g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
