Rvm with chef system/user-wide for multiple applications

Hi list,

I’ve given up on Chef+rvm for now. It seems to be a little bit more
involved than I expected. I ended up using this recipe to install Ruby
1.9.2 from source: https://github.com/carlo/chef-ruby1.9, luckily all my
apps are 1.9-based anyway.

However, I was wondering if anyone out there managed to successfully use
rvm to install ruby system-wide or user-wise. I’d also like to know if
there’s anyone using it to have multiple ruby apps using different rubies
by using the .rvmrc.

Any insights appreciated,

  • Marcelo.

I've tried, and even made it work, but it was painful. This was in the days before the Omnibus installer, though, so maybe it's better. IMO though, you're better off just installing them in /opt/ and referencing them directly.
On Nov 25, 2012, at 5:08 PM, Marcelo de Moraes Serpa celoserpa@gmail.com wrote:

Hi list,

I've given up on Chef+rvm for now. It seems to be a little bit more involved than I expected. I ended up using this recipe to install Ruby 1.9.2 from source: GitHub - czottmann/chef-ruby1.9: Chef cookbook: Installs Ruby 1.9.x from source., luckily all my apps are 1.9-based anyway.

However, I was wondering if anyone out there managed to successfully use rvm to install ruby system-wide or user-wise. I'd also like to know if there's anyone using it to have multiple ruby apps using different rubies by using the .rvmrc.

Any insights appreciated,

  • Marcelo.

The best Chef-RVM cookbook I've found is Fletcher Nichol's:

It's a bit tricky on OSX because of the compiler, but if you're doing it
on Linux it should be fairly straightforward.

There's a lot of documentation but generally you can get away with
just adding override attributes for the existing recipes.

Sascha Bates | sascha.bates@gmail.com | 612 850 0444 |
sascha.bates@skype | sascha_bates@yahoo |
On 11/25/12 5:08 PM, Marcelo de Moraes Serpa wrote:

Hi list,

I've given up on Chef+rvm for now. It seems to be a little bit more
involved than I expected. I ended up using this recipe to install Ruby
1.9.2 from source: GitHub - czottmann/chef-ruby1.9: Chef cookbook: Installs Ruby 1.9.x from source., luckily all
my apps are 1.9-based anyway.

However, I was wondering if anyone out there managed
to successfully use rvm to install ruby system-wide or user-wise. I'd
also like to know if there's anyone using it to have multiple ruby
apps using different rubies by using the .rvmrc.

Any insights appreciated,

  • Marcelo.