Feature #180
closedQuery to return more information
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"]
}
Updated by Ohad Levy almost 15 years ago
yeah, this makes a lot of sense, especially if you plan on doing some collection like (e.g. in a puppet function) without storeconfigs
Updated by Dis Connect almost 15 years ago
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)
Updated by Ohad Levy over 14 years ago
- Category set to 19
- Status changed from New to Assigned
- Assignee set to Ohad Levy
- Target version set to 0.1-5
Updated by Bash Shell over 14 years ago
I'd like to up-vote this feature.
Thanks
Updated by Ohad Levy over 14 years ago
- Status changed from Assigned to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset fdc22cbd149adba6a0ee7934abfc521a38182c63.
Updated by Ohad Levy over 14 years ago
- Status changed from Ready For Testing to Closed