Forge Home

rubybuild

ruby-build standalone (install ruby without rbenv)

14,394 downloads

10,842 latest version

5.0 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.1.5 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Jan 24th 2015
This version is compatible with:

Start using this module

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

Add this module to your Puppetfile:

mod 'benben-rubybuild', '0.1.5'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add benben-rubybuild
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install benben-rubybuild --version 0.1.5

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

benben/rubybuild — version 0.1.5 Jan 24th 2015

puppet-rubybuild

ruby-build standalone as puppet module.

It can be used to install ruby-build (https://github.com/sstephenson/ruby-build) and the latest ruby without rbenv.

Only tested on Ubuntu 12.04.2 LTS 64bit.

Installation

with puppet(forge)

$ puppet module install benben-rubybuild

with librarian

Put this in your Puppetfile:

mod "benben/rubybuild"

and run

$ librarian-puppet

with git

cd to your module folder and run

$ git clone git@github.com:benben/puppet-rubybuild rubybuild

Configuration

The following config options are possible. The values are shown here are the default values.

$repo_path         = "git://github.com/sstephenson/ruby-build.git" # which git repo to use for cloning ruby-build
$install_dir       = "/usr/local" # where ruby-build will be installed
$ruby_version      = "2.1.3" # desired ruby version
$ruby_install_dir  = "/opt" # where ruby will be installed
$ruby_path         = "/opt/ruby" #where the current ruby will be linked to, so you can point all your stuff to this and always have the right version
$version_in_dir    = true, # if true it will install to '$ruby_install_dir/$ruby_version' otherwise '$ruby_install_dir' only
$required_packages = ["libreadline6-dev", "zlib1g-dev", "libssl-dev"] # which packages should be installed before compiling ruby
$install_ruby      = true # set this to false if you only want to install ruby-build but no ruby

If you dont want to change anything, its enough to do

include rubybuild

or

class { "rubybuild": }

If you only want to install the standalone ruby-build without installing ruby, set $install_ruby to false.

class { "rubybuild":
  install_ruby => false,
}

Update

I will release a new version of this module everytime there is a new Ruby version. Simply upgrade this module to get the new Ruby version automatically.

If you want to upgrade without upgrading Ruby, just specify your desired Ruby version when you declare the class (see above for configuration options).

If you want to upgrade Ruby without upgrading this module, just specify your desired Ruby version when you declare the class. ATTENTION: This will only work with versions of this module >=0.1.0.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright (c) 2013 Benjamin Knofe http://benjaminknofe.com

MIT License

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.