Skip to content

Instantly share code, notes, and snippets.

@mtthlm
Created August 8, 2014 15:17
Show Gist options
  • Save mtthlm/b779820091e4ebf617b1 to your computer and use it in GitHub Desktop.
Save mtthlm/b779820091e4ebf617b1 to your computer and use it in GitHub Desktop.
Vagrant Puppet Provision Script using RVM and any version of Ruby you desire!
#!/bin/env bash
# Silently install RVM
curl -sSL https://get.rvm.io | bash -s stable > /dev/null 2>&1
# Make RVM command available
source /etc/profile.d/rvm.sh
# Add vagrant User to rvm Group
usermod -a -G rvm vagrant
# Silenty Install Ruby 1.9.3 (or another version)
rvm install 1.9.3 > /dev/null 2>&1
# Set the default Ruby version to use
rvm use --default 1.9.3
# Silenty install the Puppet Ruby Gem
gem install --no-ri --no-rdoc puppet > /dev/null 2>&1
# Silenty install the librarian-puppet Ruby Gem
gem install --no-ri --no-rdoc librarian-puppet > /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment