On Thursday, July 19, 2012 10:02:32 AM UTC-7, Erik Dalén wrote:
> 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') > > WOWWW, that is extremely cool. I can see all kinds of uses for that. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/3jYj7blNAwkJ. 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.