Justin,
Funny, i'm dealing with a somewhat similar scenario, but I should let you
know that you CAN run lookup from CLI...
"puppet lookup" should invoke exactly what "lookup" does from within
puppet, that's actually something they did amazingly well...
On Thursday, August 31, 2017 at 11:29:02 AM UTC-5, Justin DynamicD wrote:
>
> Appreciate your feedback. After a bit of "mucking about" I've added a v5
> yaml to a branch and will probably merge it in soon, but have left the
> global yaml inplace as v3 until I can do more testing ...
>
> That said the lookup() feature doesn't feel any easier than the old hiera
> statement ... arguably harder actually. hiera('var' , []) was easier to me
> than lookup('var', data, 'first', []) but meh, overtime maybe I'll
> appreciate it or at least accept it now that I can make per-environment
> hiera changes.
>
> Yes, the lookup seems to work like you said it would, but it seems I've
> only opened a can of worms:
>
> 1. I can't run lookup from the cli, only hiera. So guess I have to
> figure out why (maybe because the global hiera is still v3?)
> 2. the consul backend dumps an array of hashes ... eww ... looks like Ill
> have to get really clever about how to manipulate things to get the exact
> key/value I want ... out of scope of this question though.
>
> Thank you for your help.
>
--
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/28ef9a6b-4f27-4d06-be6d-cfa2de0bcc19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.