Version information
This version is compatible with:
Start using this module
Add this module to your Puppetfile:
mod 'gdsoperations-rbenv', '1.3.1'
Learn more about managing modules with a PuppetfileDocumentation
rbenv
Manage a single system installation of rbenv and Rubies.
This differs from existing puppet-rbenv
modules in that it uses system
packages for everything. It will never call git clone
or rbenv install
(normally provided by ruby-build).
This ensures that every install is consistent on every server. This is particularly important for Ruby, which will link to whatever libraries and headers are available on the system which it is compiled.
Examples of these packages can be seen at:
- https://github.com/alphagov/packager
- https://launchpad.net/~gds/+archive/govuk/+packages?field.name_filter=rbenv
Example usage
Include:
include rbenv
Setup a version of Ruby:
rbenv::version { '1.9.3-p392':
bundler_version => '1.3.5'
}
rbenv::alias { '1.9.3':
to_version => '1.9.3-p392',
}
License
See LICENSE file.
2018-04-12 Release 1.3.1
- Fix puppet error that occurs first time this is run for a new ruby version.
2018-01-08 Release 1.3.0
- Add an option not to install gem documentation (default: false, install gem documentation).
2014-11-11 Release 1.2.0
- Add support for removing rbenv versions with an
ensure => absent
param.
2014-09-30 Release 1.1.1
- Revert: Allow installation of bundler even when puppet is within rbenv (#13).
2014-09-29 Release 1.1.0
- Allow installation of bundler even when puppet is within rbenv (#8).
rbenv::version
installs latest version of rbenv-ruby packages (#10).
2013-07-30 Release 1.0.1
- Unset Bundler's env vars when querying version.
2013-07-04 Release 1.0.0
- Remove some hackery on rbenv::version exec{}.
- Default bundler_version to
>= 0
. - Ensure that bundler meets minimum version (won't handle downgrades).
- Apply GDS module standards.
- Clarify support for Ubuntu/Debian only.
- Change how params are passed between
rbenv
andrbenv::global
. - Replace
require
params with simpler chains. - First release on Forge.
2013-06-17 Release 0.0.5
- Set
RBENV_ROOT
when callingbundle install
. - Support for specifying a given version of bundler.
- Variabilise filesystem paths.
- Extend test coverage.
- Specify path for
rbenv(1)
binary. - Always manage a default for
rbenv::global
. - This should have really been a major release, sorry.
2013-05-23 Release 0.0.4
- Set
RBENV_ROOT
when callingrbenv rehash
.
2013-05-20 Release 0.0.3
- Remove
$RBENV_ROOT/bin
from$PATH
- deemed unnecessary.
2013-05-17 Release 0.0.2
- Add
$RBENV_ROOT/bin
to$PATH
.
2013-05-15 Release 0.0.1
- Initial release
The MIT License (MIT) Copyright (c) 2013 Government Digital Service Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.