Manages per-user RVMs and manages installed Rubies.
- Ubuntu 14.04 LTS
- Chef 12.2.0
rvm_sl::user_install
- User installation of rvm
See attributes/user_install.rb
for default values.
node['rvm']['keyserver']
- Key to import from key servernode['rvm']['rcev-keys']
- Import the keys with the given key IDs from a keyservernode['rvm']['user']['name']
- The user name for rvm user installnode['rvm']['user']['home']
- The home of the user
Example install ruby 2.2.3 as default for vagrant user:
rvm_rubies 'ruby-2.2.3' do
default true
home '/home/vagrant'
user_name 'vagrant'
end
Example install bundler gem for user install ruby 2.2.3:
rvm_gem 'bundler' do
home '/home/vagrant'
ruby_version 'ruby-2.2.3'
user_name 'vagrant'
end
Just include rvm_sl::user_install
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[rvm_sl::user_install]"
]
}
knife cookbook site share "rvm_sl" "Package Management"
Before running kitchen test
:
# vagrant box matching `.kitchen.yml` platform driver box
vagrant box add ubuntu-14.04 https://github.com/kraksoft/vagrant-box-ubuntu/releases/download/14.04/ubuntu-14.04-amd64.box
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: David Saenz Tagarro