On Thu, Jul 19, 2012 at 07:02:32PM +0200, Erik Dalén 
<[email protected]> wrote:
> I've released a new version of this module, it no longer requires the
> rest_client gem and uses the Puppet HTTP pool instead.
> It also supports getting facts for an array of hosts at once. As an
> example if you want the IPs of all hosts with Apache class you could
> do this:
> 
> $hosts = pdbfactquery(pdbresourcequery([ 'and', [ '=', [ 'node',
> 'active' ], true ], [ '=', 'type', 'Class' ], [ '=', 'title', 'Apache'
> ] ], 'certname'), 'ipaddress')

Awesome!

deepak

--
Deepak Giridharagopal / Puppet Labs / grim_radical

-- 
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.

Reply via email to