Looks like fun, although the feature I really, really wanted seems to be held up by parser issues. The lookups work great, but at least in 2.6.7 my arrays of hashes fall over pretty regularly with pson errors when I try to use them as resource names. If it were me I'd replace the to_s with a numeric representation of the hash contents so that it would work properly as $name in resources and defines. In my use case I could care less about the name of the object, I really just want access to the key=>value pairs it contains.
On Fri, May 27, 2011 at 2:09 PM, R.I.Pienaar <[email protected]> wrote: > And for those who have been following ticket 6079 and Nigels > get() function this version of extlookup now has 1:1 feature parity > with that and a Puppet backend. > > In addition I've extended Nigels work to also support precedence like > normal with extlookup > > ----- Original Message ----- > > And for what its worth this afternoon just to see how hard it is > > and to again ask to myself 'wtf has no-one done this yet?' and also > > 'wtf are people at Puppet Labs reinventing this wheel?' I wrote > > a new extlookup that has pluggable backends. > > > > It has a 100% backward compatible CSV backend and new a YAML backend > > > > Backends are easy to add - I will make the interface a little bit > > better > > in future and I, again, wish Puppet Labs would fix bugs that make it > > easier to deploy Util classes into masters. > > > > Rather than abuse global variables I added a simple YAML based config > > file. > > > > So, again, I hacked this up this afternoon, its early days and no > > doubt > > can be improved. Feedback welcome > > > > https://github.com/ripienaar/puppet-extlookup > > > > ----- Original Message ----- > > > Thanks Ohad, this looks very interesting. > > > > > > > > > On Fri, May 27, 2011 at 11:07 AM, Ohad Levy < [email protected] > > > > wrote: > > > > > > > > > > > > fyi, https://github.com/ohadlevy/puppet-lookup exists for a long > > > time > > > too, it also allows you to put your actual data files inside your > > > modules (or mulitple modules with a search / prio path). > > > > > > > > > Ohad > > > > > > > > > > > > > > > > > > On Fri, May 27, 2011 at 7:30 PM, Aaron Grewell < > > > [email protected] > wrote: > > > > > > > > > > > > > > > > > > FYI, if you haven't seen ymllookup it's unofficial but worth a > > > test: > > > http://projects.puppetlabs.com/issues/4433 > > > > > > For those of us that find extlookup useful ymllookup takes it to > > > the > > > next level and allows lookups in YAML. Having the ability to lookup > > > arrays of hashes has made life so much easier for me. > > > > > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Puppet Users" group. > > > To post to this group, send email to [email protected] > > > . > > > To unsubscribe from this group, send email to > > > [email protected] . > > > For more options, visit this group at > > > http://groups.google.com/group/puppet-users?hl=en . > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Puppet Users" group. > > > To post to this group, send email to [email protected] > > > . > > > To unsubscribe from this group, send email to > > > [email protected] . > > > For more options, visit this group at > > > http://groups.google.com/group/puppet-users?hl=en . > > > > > > > > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Puppet Users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > > http://groups.google.com/group/puppet-users?hl=en. > > > > > > > -- > > R.I.Pienaar > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Puppet Users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/puppet-users?hl=en. > > > > > > -- > R.I.Pienaar > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
