Added a query_resource function for Puppet.
Merge remote-tracking branch 'rlpowell/master'