puppetserver_gem
Version information
This version is compatible with:
- Puppet Enterprise 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
- Puppet >=4.0.0 < 5.0.0
Start using this module
Add this module to your Puppetfile:
mod 'geoffwilliams-puppetserver_gem', '1.0.1'
Learn more about managing modules with a PuppetfileDocumentation
#puppetserver_gem module
Table of Contents
- Overview
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with puppetserver_gem
- 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
##Warning This module is provided as an emergency customer hotfix. Do not use unless instructed to do so
##Overview
This module provides management of Ruby gems for both PE and FOSS Puppet Server. It supercedes the deprecated pe_puppetserver_gem.
This uses gem as a parent and uses puppetserver gem
command for all gem operations.
##Setup
To install a gem from RubyGems into Puppet Server:
package { 'json':
ensure => present,
provider => puppetserver_gem,
}
##Usage
###To add the 'json' gem from the default gem sources: By default there is one gem source which is https://rubygems.org
package { 'json':
ensure => present,
provider => puppetserver_gem,
}
###To uninstall the 'json' gem:
package { 'json':
ensure => absent,
provider => puppetserver_gem,
}
This is equivalent to the command line: puppetserver gem install --no-rdoc --no-ri json
###To add a specifc version of a gem from a specific gem repository without first checking the default gem sources:
package { 'mygem':
ensure => '1.2',
install_options => ['--clear-sources', '--no-document'],
provider => puppetserver_gem,
source => "https://some-gem-repo.org",
}
This is equivalent to the command line: puppetserver gem install -v 1.2 --clear-sources --no-document --source https://some-gem-repo.org mygem
##Reference
###Proxy support
Proxy servers are supported via through the .gemrc
file which is normally
present at /root/.gemrc
:
http_proxy: http://proxy.megacorp.com:8888
https_proxy: http://proxy.megacorp.com:8888
##Limitations
This module has been tested on PE and FOSS, and no issues have been identified. It is a wrapper around the puppetserver gem
command line, and so has the same limitations around Gems with native (C) extensions
##Development
Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.
We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.
For more information, see our module contribution guide.
Testing
At the minute, there is only an acceptance test for FOSS Puppet Server.
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.
1.0.0
Summary
This is the first officially stable release of puppetserver_gem. This is a bugfix release and no backwards-incompatible changes have been made.
Fixed
- MODULES-4815 Make
install_options
come beforesource
to allow flags such as--clear-sources
to work.
0.2.0
Features:
This adds the ability to use install & uninstall options as in the parent provider.
0.1.0 - 2015-05-28
Summary:
This module provides management of Ruby gems on puppet. This is the initial release of the puppetserver_gem it supersedes the module pe_puppetserver_gem. This module will support both FOSS and PE. With Puppet 4 the path to the puppetserver binary has changed.
Notes:
To test manually against the default nodeset. Run the acceptance test as normal. curl -O http://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.deb ; dpkg -i puppetlabs-release-pc1-trusty.deb apt-get update apt-get install puppetserver optional, make sure that the puppetserver_gem is in the correct place cp -r /etc/puppet/modules/puppetserver_gem /etc/puppetlabs/code/environments/production/modules/ /opt/puppetlabs/bin/puppet apply apply_manifest.pp.****
Copyright (C) 2014 Puppet Labs Inc Puppet Labs can be contacted at: info@puppetlabs.com 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.