Coming back after some time and having to follow the steps to install rvm,ruby and puppet, there is a slight change with the steps described on the book. One of the main differences now is that puppet 3.0.1 supports ruby 1.9.3.
So below are the steps followed to make it work.
- Remove system ruby
sudo rm -rf /opt/vagrant_ruby/
- Install rvm with system wide installation:
curl -L get.rvm.io | sudo bash -s stable
- Add vagrant user and any other additional user to the rvm group:
sudo usermod --append --groups rvm vagrant
- Exit and login back in to install ruby 1.9.3-p327 (current)
vm$ exit $ vagrant ssh vm$ rvm install 1.9.3-p327
- Install puppet as the vagrant user and NOT as sudo:
gem install puppet -v 3.0.1
- Replace paths (ie gem path) from