Project

General

Profile

Feature #180

Query to return more information

Added by Jakub Heichman about 9 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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"]
}

Associated revisions

Revision fdc22cbd (diff)
Added by Ohad Levy about 9 years ago

fixes #180 - Query to return more information

Revision 95131ca2 (diff)
Added by Ohad Levy about 9 years ago

refs #180, updated query library to use verbose mode

History

#1 Updated by Ohad Levy about 9 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

#2 Updated by Dis Connect about 9 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)

#3 Updated by Ohad Levy about 9 years ago

  • Category set to 19
  • Status changed from New to Assigned
  • Assignee set to Ohad Levy
  • Target version set to 0.1-5

#4 Updated by Bash Shell about 9 years ago

I'd like to up-vote this feature.

Thanks

#5 Updated by Ohad Levy about 9 years ago

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

#6 Updated by Ohad Levy about 9 years ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Tomer Brisker 7 months ago

  • Category changed from 19 to Search

Also available in: Atom PDF