Installs Ruby using the Brightbox Ruby PPA.
Requires Chef 0.10.10+ and Ohai 0.6.10+ for platform_family attribute use.
Tested on the following platforms:
- Ubuntu 12.04, 14.04
Opscode cookbooks:
- apt
- build-essential
node['ruby']['version']- Can beruby1.9.1,ruby2.0orruby2.1, Defaults toruby2.1.ruby1.9.1is Ruby 1.9.3.node['ruby']['install_dev_package']- whether to also install the Ruby dev package. Defaults totrue.node['ruby']['packages']- additional packages to install. Defaults to%w{ curl git libxml2-dev libxslt-dev libmysqlclient-dev nodejs }node['ruby']['gems']- Ruby gems to install. Defaults to%w{ bundler }.
node['ruby']['user']- defaults tovagrant.node['ruby']['group']- defaults towww-data.node['ruby']['rails_env']- Rails environment. Defaults todevelopment.node['ruby']['db']- database settings. Defaults to
{ 'username' => 'vagrant', 'password' => SecureRandom.hex(10), 'host' => 'localhost' }
Installs Ruby from the Brightbox Ruby PPA. Also installs the bundler gem, the curl and git packages, the libxml2-dev and libxslt-dev libraries required by the nokogiri gem, the libmysqlclient-dev library required by the myslq2 gem, and nodejs as Javascript runtime.
Nothing is installed. Use this recipe to include the above attributes only.
- Author: Martin Fenner (mfenner@plos.org)
Copyright: 2014, Public Library of Science
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.