I am trying to install RVM using Amazon OpsWorks using the following cooking https://github.com/fnichol/chef-rvm . I want rvm to run as user tomcat6, so I included the rvm :: user recipe with the correct attributes.
The error I am getting is:
Wed, 06 March 2013 20:05:05 +0000 ERROR: Starting exception handlers Wed, 06 Mar 2013 20:05:05 +0000 ERROR: exception handlers completed Wed, 06 March 2013 20:05:05 +0000 DEBUG: Rising exception : LoadError - there is no such file to load - rvm / opt / aws / opsworks / current / site-cookies / rvm / recipes / default.rb: 29: in require' /opt/aws/opsworks/current/site-cookbooks/rvm/recipes/default.rb:29:in from_file '
And a piece of code throwing an exception:
chef_gem 'rvm' do action :install version '>= 1.11.3.6' end ruby_block "require rvm" do block do require 'rvm' create_rvm_shell_chef_wrapper create_rvm_chef_user_environment end action :create end
After receiving the error, I registered the instance with ssh and checked if rvm gem was installed. I could not see the rvm specified in the * LOCAL GEMS * section.
Then I replaced the chef_gem method with gem_package and still got the same error. But this time, when I checked the gem list, the rvm list was specified.
Any help? Thanks in advance.
source share