blt04 / puppet-rvm

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

Add property to allow passing autolibs mode for Issue #71 #75

Closed icole closed 11 years ago

icole commented 11 years ago

This will allow a user to specify an autolibs mode before a system ruby install.

Example:

rvm_system_ruby {
  'ruby-1.9.2-p290':
    ensure => 'present',
    default_use => true,
    autolib_mode => 'enabled';
}
tiredpixel commented 11 years ago

+1 for this pull request (and thanks! :) ); I've just used it successfully against 5dbcf8d with puppet 2.7.11 on Ubuntu Server 12.04 LTS.

Just as a note, however: Despite autolib_mode being specified within the definition of a Ruby, this uses the permanent rvm autolibs method, not the temporary rvm install X --autolibs. I haven't thought much about this, as I'm looking for it to be permanent. But declaration thusly would seem to mirror default_use, so perhaps it's fine.