Forge Home

ruby

The module installs ruby compiling it from sources

14,100 downloads

10,849 latest version

4.6 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

  • 0.5.3 (latest)
  • 0.5.2
  • 0.5.1
  • 0.5.0
  • 0.4.0
  • 0.3.2
  • 0.3.1
  • 0.2.1
  • 0.1.1
  • 0.0.2
  • 0.0.1
released Apr 9th 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 'gajdaw-ruby', '0.5.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add gajdaw-ruby
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install gajdaw-ruby --version 0.5.3

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

gajdaw/ruby — version 0.5.3 Apr 9th 2015

Puppet Module

gajdaw/ruby

Table of Contents

  1. Overview
  2. Setup
  3. Usage
  4. Limitations
  5. Development

Overview

The module installs ruby compiling it from sources.

Sources are downloaded from:

ftp://ftp.ruby-lang.org/pub/ruby/X.Y/ruby-X.Y.Z.tar.gz

The commands used to compile and install:

$ cd ruby-X.Y.Z
$ sudo ./configure --disable-install-rdoc
$ sudo make
$ sudo make install

The commands used to install dependencies:

  • Ubuntu 14.04

    sudo apt-get update -y
    sudo apt-get install -y curl make
    sudo apt-get install -y zlib1g-dev libffi-dev
    sudo apt-get install -y openssl libssl-dev libcurl4-openssl-dev
    sudo apt-get install -y libreadline6-dev
    sudo apt-get install -y build-essential
    

Setup

To install the module run:

sudo puppet install module gajdaw-ruby

Usage

You can use the module running the following command:

sudo puppet apply -e 'include ruby'

You can also use the class in your manifests like this:

include ruby

Remember that before applying ruby class your system needs to be updated. You can do it using gajdaw-ubuntu and puppetlabs-stdlib classes:

include stdlib
class { ubuntu: stage => setup }
class { ruby: }

The examples are located in examples/ directory.

Limitations

The module was tested on all the platforms that appear in metadata.json.

The results of tests are available in test-output.txt file.

###Procedure to test

CAUTION

Script:

/etc/puppet/modules/puppet/update-puppet-ubuntu-with-facter.sh

comes from gajdaw-puppet Puppet module. In order to use it you have to install the module:

sudo puppet module install gajdaw-puppet
  • Debian

    • 6.0 (squeeze) (Vagrant box: chef/debian-6.0.8)

      vagrant up
      sudo /etc/puppet/modules/puppet/update-puppet-with-param.sh squeeze
      sudo puppet apply /etc/puppet/modules/ruby/examples/default.pp
      ruby --version
      
  • Ubuntu

    • 12.04 (precise) (Vagrant box: ubuntu/precise32)

    • 14.04 (trusty) (Vagrant box: ubuntu/trusty32)

      vagrant up
      sudo /etc/puppet/modules/puppet/update-puppet-ubuntu-with-facter.sh
      sudo puppet apply /etc/puppet/modules/ruby/examples/with-update.pp
      ruby --version
      
  • CentOS

    • 6.5 (Vagrant box: puppetlabs/centos-6.5-64-puppet)

      vagrant up
      sudo puppet apply /etc/puppet/modules/ruby/examples/default.pp
      ruby --version
      

Development

For development instructions visit Puppet Modules Factory