resource_api
Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >= 4.7.0 < 7.0.0
- , , , , , , , , , ,
This module has been deprecated by its author since Mar 31st 2021.
Start using this module
Documentation
resource_api
Table of Contents
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with resource_api
- Reference - An under-the-hood peek at what the module is doing and how
- Development - Guide for contributing to the module
Module Description
This module installs the Puppet Resource API gem into a puppet agent and pe-pupetserver or puppetserver service. This is necessary to use any type or provider that is implemented using the Puppet Resource API.
Setup
What resource_api affects
The Puppet Resource API gem will be installed into a puppet agent using the puppet_gem
provider, and into a puppetserver service using the puppetserver_gem
provider. To activate the gem, a reload of the puppetserver service is necessary. In most cases, this should happen automatically and cause little to no interruption to service.
Setup Requirements
The Puppet Resource API is only compatible with Puppet 4.7 and later. There are no further specific requirements.
Beginning with resource_api
To install dependencies of the Puppet Resource API:
- Classify or apply the
resource_api
class on each master (master of masters, and if present, compile masters and replica master) that needs to process Puppet Resource API types and providers. - Classify or apply the
resource_api
class on each puppet agent that needs to apply Puppet Resource API types and providers.
To specify the version of the Puppet Resource API gem you want to install, use the $api_version
parameter with the resource_api::install::master
and resource_api::install::agent
classes instead of using the resource_api
class.
To specify a non-default puppetserver
service resource (if you're not using the standard service) use the $puppetserver_service
parameter with the resource_api::install::master
class instead of using the resource_api
class.
Run puppet agent -t
on the master(s) before using the Puppet Resource API on the agent(s).
Reference
See REFERENCE.md
Development
Execute the Puppet Strings task to generate the latest REFERENCE.md
bundle exec rake 'strings:generate[manifests/**/*.pp,,,,,REFERENCE.md,true]'
Please submit any issues, or contributions on https://github.com/puppetlabs/puppetlabs-resource_api
Reference
Table of Contents
Classes
resource_api
: This class calls the resource_api::install class.resource_api::agent
: This class installs the Resource API gem into puppet agentresource_api::install
: This class installs dependencies of the Resource API into the puppet agent, and/or the puppetserver service.resource_api::install::agent
: This class installs the Resource API gem into puppet agentresource_api::install::master
: This class installs the Resource API gem into puppetserver, and restarts the puppetserver service to activate.resource_api::server
: This class installs the Resource API gem into puppetserver, and restarts the puppetserver service to activate.
Classes
resource_api
This class calls the resource_api::install class.
Examples
Declaring the class
include resource_api
resource_api::agent
This class installs the Resource API gem into puppet agent
- Note Deprecated, use resource_api::install::agent
Examples
Declaring the class
include resource_api::agent
Parameters
The following parameters are available in the resource_api::agent
class.
api_version
Data type: String
A specific release version of Resource API to install
Default value: 'latest'
resource_api::install
This class installs dependencies of the Resource API into the puppet agent, and/or the puppetserver service.
Examples
Declaring the class
include resource_api::install
resource_api::install::agent
This class installs the Resource API gem into puppet agent
Examples
Declaring the class
include resource_api::install::agent
Parameters
The following parameters are available in the resource_api::install::agent
class.
api_version
Data type: String
A specific release version of Resource API to install
Default value: 'latest'
resource_api::install::master
This class installs the Resource API gem into puppetserver, and restarts the puppetserver service to activate.
Examples
Declaring the class
include resource_api::install::master
Parameters
The following parameters are available in the resource_api::install::master
class.
api_version
Data type: String
A specific release version of Resource API to install
Default value: 'latest'
puppetserver_service
Data type: Type[Resource]
The name of the puppetserver service to restart
Default value: $facts['pe_server_version']
resource_api::server
This class installs the Resource API gem into puppetserver, and restarts the puppetserver service to activate.
- Note Deprecated, use resource_api::install::server
Examples
Declaring the class
include resource_api::server
Parameters
The following parameters are available in the resource_api::server
class.
api_version
Data type: String
A specific release version of Resource API to install
Default value: 'latest'
puppetserver_service
Data type: Type[Resource]
The name of the puppetserver service to reboot
Default value: $facts['pe_server_version']
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v1.1.0 (2019-06-17)
Added
Fixed
1.0.0 (2018-09-12)
Added
Fixed
- (PDK-881) install Resource API only on puppet versions that need it #9 (DavidS)
- Disable extensive debugging on acceptance testing #7 (DavidS)
0.3.0 (2018-06-25)
Fixed
0.2.0 (2018-03-21)
Added
Fixed
0.1.0 (2018-03-20)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/puppetserver_gem (>= 1.0.0 < 2.0.0)