The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

Feature #7426

Inventory Service API should provide a list of all available facts and all values for a specific fact

Added by Philip Gardner about 3 years ago. Updated over 2 years ago.

Status:AcceptedStart date:05/06/2011
Priority:NormalDue date:
Assignee:Nick Lewis% Done:

0%

Category:API
Target version:3.x
Affected Puppet version:2.6.7 Branch:
Keywords:

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com

This ticket may be automatically exported to the PUP project on JIRA using the button below:


Description

There are times when it would be helpful to know what all facts are available to query in the inventory service. Right now the only way I see doing this is iterating through every node and collecting the unique facts. Maybe something like (no host specified):

GET /{environment}/facts

Another nice feature would be the ability to return all possible hosts and values for a specific fact; a common use case might be gathering up all serial numbers, or chassis types out there.

GET /{environment}/facts_search/search?facts.{fact}

History

#1 Updated by James Turnbull about 3 years ago

  • Status changed from Unreviewed to Needs Decision
  • Assignee set to Nigel Kersten

#2 Updated by Nigel Kersten over 2 years ago

  • Status changed from Needs Decision to Accepted
  • Assignee deleted (Nigel Kersten)
  • Target version set to 3.x

This would be great.

I wonder if we should also have “all facts for a specific node” ?

#3 Updated by Nigel Kersten over 2 years ago

  • Assignee set to Deepak Giridharagopal

#4 Updated by Nigel Kersten over 2 years ago

  • Assignee changed from Deepak Giridharagopal to Nick Lewis

Also available in: Atom PDF