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]
The hash I would like to be convert to is:
{ ip1 => { attr1 => value1, attr2 => value2}, ip2 => { attr1 => value1, attr2 => value2} }
Ideally if there is any function can merge an array and hash, e.g. merge( [ip1, ip2], { attr1 => value1, attr2 => value2}) to get above value.
Thanks!
Cheers,
Pan