blt04 / puppet-rvm

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

reinstall rvm_system_ruby #109

Open cloud-hot opened 10 years ago

cloud-hot commented 10 years ago

If i first install the blow dvm rvm_system_ruby { 'ree-1.8.7-2012.02': ensure => 'present', require => Class['rvm::system'], default_use => true; } and then i want to install ruby-other-version, and if i exec again puppet command it will report the blow error: puppet apply --debug --modulepath '/tmp/vagrant-puppet-1/modules-0' --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/hotspot-precise64.pp || [ $? -eq 2 ]

Stdout from the command:

Stderr from the command:

stdin: is not a tty /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:900:in report_activate_error': Could not find RubyGem puppet (>= 0) (Gem::LoadError) from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:248:inactivate' from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1276:in `gem' from /opt/vagrant_ruby/bin/puppet:18

The root cause is the current $PATH already have the ree-1.8.7 execution env, so its ruby version will be conflict with puppet ruby version.