Forge Home

rbenv

rbenv Ruby Version Manager module

90,199 downloads

86,555 latest version

1.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.2.0 (latest)
  • 1.1.0
  • 1.0.0
  • 0.3.1
  • 0.3.0
  • 0.2.0
  • 0.1.0
  • 0.0.2
  • 0.0.1
released Apr 7th 2012

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'alup-rbenv', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add alup-rbenv
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install alup-rbenv --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

alup/rbenv — version 0.1.0 Apr 7th 2012

Puppet-Rbenv

Build Status

About

This project provides manifests for the installation of rbenv (Ruby Version Management).

Install

  1. Install dependencies (Rubygems and Puppet):

    sudo apt-get install rubygems puppet # Ubuntu/Debian
    
  2. Apply the catalog of chosen modules(serverless install):

    puppet apply ...
    

You can also download and install the module from puppet-forge via puppet-module by running:

puppet-module install alup/rbenv

Usage

You can use the module in your manifest with the following code:

class { "rbenv":
  user    => "alup",
  compile => true,
  version => 1.9.3-p125,
}

This will apply an rbenv installation under "alup" user home dir and will also compile ruby version 1.9.3-p125 to be ready for usage (It will also set it as the global rbenv version for this user).

If you want only an rbenv installation without compiling any ruby version, then just set compile parameter to false (It defaults to true).

All the variables except for the user, are optional.

Dry-run

If you want to just simulate (or smoke test) the installation of the module, just clone the repository and use the following command:

sudo puppet apply --noop --modulepath=$PWD/../ tests/init.pp

Testing

To run the tests, use bundle exec rake. Before running the tests, you should have run bundle install to ensure all the dependencies have been met.

Todo

Look at the TODO file.

License

MIT License. Copyright 2012 Andreas Loupasakis.