Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Latest commit

 

History

History
41 lines (29 loc) · 1.77 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.77 KB

chef-ruby

Cookbook to install the latest Ruby from the Brightbox PPA.

Requirements

Only tested on Ubuntu 14.04, but should work on earlier versions.

Attributes

ruby::default

Installs Ruby.

Key Type Description
["ruby"]["version"] String Version of Ruby to be installed. Defaults to ruby2.2
["ruby"]["experimental"] String Whether to use Brightbox's experimental Ruby PPA. Defaults to false
["ruby"]["gems"] Array Array of gems to install. Defaults to ["bundler", "rake"]
["ruby"]["gemrc"] Hash YAML contents of /etc/gemrc. Defaults to { backtrace: false, benchmark: false, update_sources: true, bulk_threshold: 1000, verbose: true, install: "--no-ri --no-rdoc", update: "--no-ri --no-rdoc" }
["ruby"]["dependencies"] Bool Dependencies required by Ruby and certain gems. Refer to attributes.rb for defaults
["ruby"]["postgresql_ppa"] Bool Whether to add the official PostgreSQL PPA. Defaults to false
["ruby"]["postgresql_version"] Bool Version of the PostgreSQL PPA to use. Defaults to "9.4"
["ruby"]["mysql_ppa"] Bool Whether to add Ondřej Surý's MySQL PPA. Defaults to false
["ruby"]["mysql_version"] String Version of the MySQL PPA to add. Defaults to "5.7"

ruby::upgrade

Upgrades Ruby if you've changed node["ruby"]["version"].

Usage

Just include ruby in your node's run_list:

{
  "run_list": [
    "recipe[ruby]"
  ]
}