Reputation: 1703
I have a Vagrant base box running Ubuntu 12.04 LTS (Precise Pangolin). I can bring up the box (vagrant up
) and ssh (vagrant ssh
) into it fine.
Next step: I want to use Puppet to provision RVM and Ruby 1.9.3-p125.
I used the puppet-rvm module from: https://github.com/blt04/puppet-rvm
I followed the instructions and added the following to my Puppet manifest:
include rvm
rvm_system_ruby {
'ruby-1.9.3-p125':
ensure => present,
default_use => true;
}
Then I destroyed my VM (vagrant destroy
) and recreated it (vagrant up
) expecting Puppet to install RVM.
But when I ssh into the VM there's no rvm for me :(
Any ideas what I might be doing wrong? Is there any information I can provide that might help figure this out?
Upvotes: 0
Views: 3700
Reputation: 84393
If you're using the puppet-rvm module, you can run into problems if you set default_use => true
because puppet may not be available to the Ruby you just installed. The puppet-rvm module is installed system-wide, so you need to make sure that root's Ruby is the system Ruby to avoid breakage.
Upvotes: 2
Reputation: 53178
for vagrant you could build a box with RVM already installed, just use veewee and this definition: https://github.com/mpapis/rvm-test-vagrant/tree/master/definitions/rvm-ubuntu-12.04-amd64
I was building it yesterday and it worked all fine.
Upvotes: 0