Version information
This version is compatible with:
- Puppet Enterprise 3.x
- Puppet >=3.7.0 <5.0.0
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'unibet-pmtprovider', '0.2.0'
Learn more about managing modules with a PuppetfileDocumentation
pmtprovider
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with pmtprovider
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Overview
This is a Puppet custom provider for the package type called 'pmt', that allows you to manage installation, removal and upgrade of puppet modules.
Module Description
The provider shells out puppet using the puppet module face, the reason for not using the puppet module api directly in code was that the puppet execution responsible for ensuring state could inadvertently carry over configuration that affects what the state should look like. For example, --module_repository is set based on configuration or command line arguments to the puppet agent | apply execution, by shelling out the puppet command we have more flexibility in that regard since we can just parameterize the execution on our own.
Setup
What pmtprovider affects
- A provider 'pmt' to the package resource type
Beginning with pmtprovider
Installing the module using the pmt:
puppet module install unibet-pmtprovider
Usage
Some sample usages using the provider
Installing the puppetlabs-apache puppet module:
package { 'puppetlabs-apache':
ensure => present,
provider => pmt
}
Installing puppetlabs-apache in a custom location:
package { 'puppetlabs-apache':
ensure => present,
provider => pmt,
install_options => [
{
'--modulepath' => '/custom/location'
}
]
}
Installing company-privatemodule using a custom forge:
package { 'company-privatemodule':
ensure => present,
provider => pmt,
install_options => [
{
'--module_repository' => 'https://forge.company.example.com'
}
]
}
The provider also supports version pinning and the use of symbols such as latest and absent.
Reference
See usage
Development
If you want to contribute please send in a pull request, eventually when we have tests in place we'd prefer that your changes passes the spec tests before it gets merged
Copyright 2015 North Development AB Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.