blt04 / puppet-rvm

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

Install RVM (and different rubies) for root #56

Closed cbetta closed 11 years ago

cbetta commented 11 years ago

I am a bit unclear how I can install rvm for root. I need this for a little projects and was hoping I could get this working using this module.

blt04 commented 11 years ago

This puppet module installs RVM in "Multi-User mode" (https://rvm.io/rvm/install/). In this mode, you can use rvm by any user, including root. Does this help?

cbetta commented 11 years ago

That doesn't solve my problem. I have some other scripts that need to run as sudo, and they eventually call a ruby script. I want to run that script as ruby 1.9.3, not the system's default of 1.8.7.

blt04 commented 11 years ago

Have you tried rvmsudo?

cbetta commented 11 years ago

headdesk. Of course. Tnx for the help.