On Thu, Jul 19, 2012 at 07:02:32PM +0200, Erik Dalén 
<erik.gustav.da...@gmail.com> 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 puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to