Project

General

Profile

Feature #1554

Add support for fact retrieval via puppet inventory service REST API

Added by Jason Antman over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

The current documentation on puppet facts (http://theforeman.org/projects/foreman/wiki/Puppet_Facts) includes scenarios for:
  • Using storeconfigs with foreman and puppet sharing a database
  • importing facts if foreman and puppetmaster are on the same host
  • various methods that rely on puppet storing the facts as yaml on disk

There is no support for installations running foreman on a separate host with its own database, with a new puppet version storing facts in its own database (storeconfigs or "thin" storeconfigs, or just "fact_terminus = inventory_active_record"). Puppet 2.6.7+ includes a REST-based Inventory Service API (http://docs.puppetlabs.com/guides/inventory_service.html), which is now the suggested method for external applications to obtain facts (in fact, this is used by Puppet Dashboard itself).

It would be nice if there were support for this API as a method of obtaining facts. It could even be linked to the "puppetmaster" selection for hosts/hostgroups. Would probably be best to trigger this after a report is received.

Also available in: Atom PDF