blt04 / puppet-rvm

A puppet module for installing and using RVM (Ruby Version Manager)
Other
242 stars 280 forks source link

Ability to pass compile options, pkg install to Rvm_system_ruby #68

Open rwilcox opened 11 years ago

rwilcox commented 11 years ago

I've added support for installing rvm packages via the Rvm_system_ruby type, and also added the ability to pass compile time options.

I implemented this because I found that the OpenSSL version on my OS was too old for RubyGems 2.0 / Ruby 2.0. I followed the instructions in a gist (https://gist.github.com/jfirebaugh/4007524) to use RVM's openssl package and that worked! But I wanted to automate that, so I made some modifcations.

Anyway, hope this helps! Let me know if I can change anything, etc etc.

blt04 commented 11 years ago

Looks nice. But what if someone needs the OpenSSL package for multiple rubies? In that case it looks like OpenSSL is installed twice. Maybe we need to create an rvm_package type/provider?

rwilcox commented 11 years ago

But what if someone needs the OpenSSL package for multiple rubies?

Yeah, that's a problem I solved in an in-elegant way. My, Ryan-doesn't-know-Puppet-all-that-well solution was to have one RVM_System_Ruby have a pkg declaration, then have my other Ruby require the first Ruby. Thus I know I'll have the OpenSSL package and I'll only get it once.