Created
August 8, 2014 15:17
-
-
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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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