On Thu, Jul 16, 2015 at 06:41:26AM -0700, Joao Morais wrote: > Hello list. > > I'm trying to use PuppetDB to link a webserver cluster to an EJB cluster. > Each webserver host need to reference a comma separated list of IPs > provided by each EJB host > > Exporting and collecting resources works pretty nice but I think this > isn't the better approach. I just need a variable with a hash or an array > to iterate within an ERB template in order to build my list.
I use this thing to grab a list of facts that eventually becomes activemq queues/topics for mcollective, your use case sounds similar enough to mine. https://forge.puppetlabs.com/dalen/puppetdbquery > I tried the generate() function approach, using curl to request a JSON > array. Iterating such array I can populate my template. But this approach > sounds more a workaround instead a solution. > > Do you have another ideas to this scenario? > > Thanks, JM > > -- > 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 [1][email protected]. > To view this discussion on the web visit > > [2]https://groups.google.com/d/msgid/puppet-users/9e4e9385-8c6f-4b9f-95f1-6d502baf0048%40googlegroups.com. > For more options, visit [3]https://groups.google.com/d/optout. > > References > > Visible links > 1. mailto:[email protected] > 2. > https://groups.google.com/d/msgid/puppet-users/9e4e9385-8c6f-4b9f-95f1-6d502baf0048%40googlegroups.com?utm_medium=email&utm_source=footer > 3. https://groups.google.com/d/optout -- 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/20150716174609.GA20939%40iniquitous.heresiarch.ca. For more options, visit https://groups.google.com/d/optout.
