Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-09-17 Thread Justin DynamicD
Thank you very much for your reply. I did eventually get things working (nearly) the way I wanted. In the end I'm using Hiera 5 but still have a v3 global in order to get hiera-consol working. I then forked that and wrote my own custom function to get it do return data in a format I expected

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-09-14 Thread John Baird
Justin, I just wanted to say that I am currently working on implementing the hiera_http to interact with consul. It's not nearly as clean/concise, but it works nonetheless. https://github.com/crayfishx/hiera-http Still implementing it at the moment and testing to make sure things work, but f

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-31 Thread Justin DynamicD
Unfortunately puppet lookup doesn't work at all for me, instead it's complaining about being unable to load some ruby gems that are related to a windows chocolaty module that doesn't even get called in the current environment. Mind you simple puppet agent -t runs and everything else is flawles

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-31 Thread John Baird
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

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-31 Thread Justin DynamicD
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 ... argu

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-30 Thread Henrik Lindberg
On 30/08/17 18:23, Justin DynamicD wrote: Thanks for this info. My biggest problem right now is the backend is Hiera 3, and I'm not aware of any written/usable consul backends written in Hiera_5.  It took me long enough to get this syntax working, writing a backend is well outside my wheelhou

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-30 Thread Justin DynamicD
Thanks for this info. My biggest problem right now is the backend is Hiera 3, and I'm not aware of any written/usable consul backends written in Hiera_5. It took me long enough to get this syntax working, writing a backend is well outside my wheelhouse at this time, so writing a new custom hie

Re: [Puppet Users] Re: hiera consul backend Puppet 4.10

2017-08-30 Thread Henrik Lindberg
On 30/08/17 09:32, Justin DynamicD wrote: I finally was able to solve this issue on my own, so posting for others who may have been lost: the hiera () syntax is _very_ sensitive, even more-so than runnning hiera and the command prompt.  So while: hiera .Services would call back all the servi