\curl -L https://get.rvm.io | bash -s stable --ruby
source ~/.rvm/scripts/rvm
rvm requirements
rvm install ruby 2.1.1
rvm use ruby --default
rvm rubygems current
gem install bundler
recipe[rvm::system]
in your run_list and override the defaults you want changed. See below for more details."name "rvm"
description "RVM applied to all linux nodes."
run_list(
"recipe[rvm::system]"
)
override_attributes(
'rvm' => {
'rubies' => ['ruby-2.1.1'],
'default_ruby' => 'ruby-2.1.1',
'global_gems' => ['bundler', 'rake']
}
)
When running knife, I get the following:
Recipe Compile Error in /var/chef/cache/cookbooks/rvm/recipes/system.rb
TypeError: can't convert Symbol into Integer
---------------
/var/chef/cache/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb:191:in `[]'
/var/chef/cache/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb:191:in `block in install_rubies'
/var/chef/cache/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb:190:in `each'
/var/chef/cache/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb:190:in `install_rubies'
/var/chef/cache/cookbooks/rvm/recipes/system.rb:29:in `from_file'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb:
Any suggestions?
Archive powered by MHonArc 2.6.16.