Project

General

Profile

Actions

Feature #15095

closed

Add Puppet server environment_classes API support

Added by Dominic Cleal over 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Puppet
Target version:

Description

For Puppet Server 2.3.0 or higher (Puppet version 4.4+), a new environment_classes API is available that replaces resource_types.

https://docs.puppet.com/puppetserver/2.3/release_notes.html#new-feature-environmentclasses-api
https://docs.puppet.com/puppetserver/2.3/puppet-api/v3/environment_classes.html

In Puppet 4.5 (probably Puppet Server 2.4.0?) the older resource_types API is deprecated:

https://docs.puppet.com/puppet/4.5/reference/release_notes.html#deprecations

There are some features that we can expose in the smart proxy, e.g.

  1. typing via default_literal - Foreman already follows the type of the default value in the JSON response (int, hash etc) to set the type of the smart class parameter. resource_types returns everything as a string.
  2. reporting of errors - this could be logged on the smart proxy and/or added to the API response
  3. clearer caching semantics with etag/matching support

Related issues 7 (1 open6 closed)

Related to Smart Proxy - Feature #13667: puppet_proxy and puppetca modules load puppet gem in puppet 4.0 and higher environments Closed02/11/2016Actions
Related to Foreman - Bug #3900: Class removed because invalid syntax validationNew12/17/2013Actions
Related to Smart Proxy - Bug #15461: Smart-Proxy is unable to retrieve puppet environments due to timeoutResolved06/20/2016Actions
Related to Smart Proxy - Bug #2289: smart-proxy should warn when it cannot read some puppet module file or directoryResolved03/07/2013Actions
Related to Smart Proxy - Bug #16760: Cannot load concurrent ruby in smart proxy puppet V3 APIClosedDominic Cleal09/30/2016Actions
Related to Smart Proxy - Bug #18290: "Puppet is taking too long to respond" during class import with Puppet 4.xClosed01/27/2017Actions
Blocks Foreman - Tracker #15096: Puppet 5 supportClosed05/19/2016

Actions
Actions

Also available in: Atom PDF