Project

General

Profile

Actions

Feature #180

closed

Query to return more information

Added by Jakub Heichman over 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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"]
}

Actions #1

Updated by Ohad Levy over 14 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

Actions #2

Updated by Dis Connect over 14 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)

Actions #3

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
Actions #4

Updated by Bash Shell over 14 years ago

I'd like to up-vote this feature.

Thanks

Actions #5

Updated by Ohad Levy over 14 years ago

  • Status changed from Assigned to Ready For Testing
  • % Done changed from 0 to 100
Actions #6

Updated by Ohad Levy over 14 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Tomer Brisker about 6 years ago

  • Category changed from 19 to Search
Actions

Also available in: Atom PDF