-
-
Save englishm/3615875 to your computer and use it in GitHub Desktop.
Puppet Bootstrap, CentOS
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/bash | |
# Update our package manager... | |
sudo yum check-update -y | |
# Install dependencies for RVM and Ruby... | |
sudo yum -y install gcc-c++ patch readline readline-devel zlib zlib-devel libxml2-devel libyaml-devel libxslt-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel git | |
# Get and install RVM | |
curl -L https://get.rvm.io | sudo bash -s stable | |
# Source rvm.sh so we have access to RVM in this shell | |
source /etc/profile.d/rvm.sh | |
# Install Ruby 1.9.3-125 | |
rvmsudo rvm install 1.9.3-p125 | |
rvmsudo rvm alias create default 1.9.3-p125 | |
source /etc/profile.d/rvm.sh | |
# Update rubygems, and pull down facter and then puppet... | |
rvmsudo rvm 1.9.3-p125 do gem update --system | |
rvmsudo rvm 1.9.3-p125 do gem install facter --no-ri --no-rdoc | |
rvmsudo rvm 1.9.3-p125 do gem install puppet --no-ri --no-rdoc | |
rvmsudo rvm 1.9.3-p125 do gem install libshadow --no-ri --no-rdoc | |
# Create necessary Puppet directories... | |
sudo mkdir -p /etc/puppet /var/lib /var/log /var/run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment