Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Ruby 2.0 on Amazon OpsWorks

I'd like to use Ruby 2.0 on Amazon OpsWorks, so I'm trying the following:

  • Choose custom cookbooks and set them to my fork of https://github.com/aws/opsworks-cookbooks
  • Update all version numbers here https://github.com/aws/opsworks-cookbooks/blob/master/ruby/attributes/ruby.rb to 2.0 values.

This doesn't seem to have any effect, though.

  • Do custom cookbooks override their built in counterparts?
  • Does OpsWorks use the Ruby recipe from the cookbook for basic Ruby setup?
  • The same question applies to Nginx too - can I control versions and settings by changing my fork for the cookbooks?
like image 658
Sudhir Jonathan Avatar asked May 20 '13 12:05

Sudhir Jonathan


2 Answers

Opsworks already has support for Ruby 2.0, it's just not exposed through the UI. However, you can easily enable it by simply passing in the following custom JSON

{
  "opsworks" : {
    "ruby_version" : "2.0.0"
  }
}

That's it! No need to install any custom packages or anything.

like image 199
Joe Chen Avatar answered Sep 28 '22 01:09

Joe Chen


OpsWorks now fully supports Ruby 2.0, in Layer settings you can specify the version of Rails, Bundler and Rubygems.

OpsWorks Screenshot

like image 21
dB. Avatar answered Sep 28 '22 01:09

dB.