Feature #180
closed
Query to return more information
Added by Jakub Heichman over 14 years ago.
Updated about 6 years ago.
Description
Hello,
I thought it would be very useful if the current query functionality was extended, so the query could optionally return more information than just hostnames - any other facts, parameters, classes etc.
Something like:
{
"fact"=>{"domain"=>"domain", "puppetversion"=>"0.24.4"},
"class" => ["common","my_special_class"]
"to_return" => ["fqdn","ipaddress"]
}
yeah, this makes a lot of sense, especially if you plan on doing some collection like (e.g. in a puppet function) without storeconfigs
We use this sort of functionality in iclassify quite a lot. It'd be nice to have here also :)
Couple of examples:
- "what vms are on a particular physical host" (get "hostname, classes" where "vhost_hostname:host10")
- 'what nodes are on each fileserver ip' (for each fileserver ip, show the hosts with that IP in facts and a particular class, count w/ wc, then total the whole thing per ip and overall)
- Category set to 19
- Status changed from New to Assigned
- Assignee set to Ohad Levy
- Target version set to 0.1-5
I'd like to up-vote this feature.
Thanks
- Status changed from Assigned to Ready For Testing
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
- Category changed from 19 to Search
Also available in: Atom
PDF