puppet-rvm icon indicating copy to clipboard operation
puppet-rvm copied to clipboard

Ability to pass compile options, pkg install to Rvm_system_ruby

Open rwilcox opened this issue 11 years ago • 2 comments

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.

rwilcox avatar Mar 07 '13 22:03 rwilcox

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?

blt04 avatar Mar 09 '13 19:03 blt04

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.

rwilcox avatar Mar 10 '13 16:03 rwilcox