Never mind. Got it working with future parser. Here is the
reference
http://docs.puppetlabs.com/puppet/3/reference/experiments_lambdas.html,
might help other people.
On Thursday, December 19, 2013 3:52:34 PM UTC-8, Pan Luo wrote:
>
> Hi Erik,
>
> Thanks. I'm using your module right now and was
Hi Erik,
Thanks. I'm using your module right now and was able to get all IPs of the
web servers into an array. I'm struggling to convert them into a hash. I'm
using puppet 3.3.2, so I suppose it's future parser? Could you give me some
light?
The array I got is something like this: [ip1, ip2]
If you use puppetdb you can use my puppetdbquery module:
http://forge.puppetlabs.com/dalen/puppetdbquery
You will get it as a array of IP addresses though. But should be easier to
go from there at least. If you use the future parser it is fairly trivial
to convert that to a hash, in the old parser
Hi there,
I'm trying to setup the permissions on mysql database with multiple web
servers using puppet-mysql module. I would like to collect all IPs of the
web servers and run grant on the database server.
It seems exported resources might help. The only way I can think of right
now is to expo