Created
September 10, 2012 07:09
-
-
Save psykidellic/3689361 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo
This file contains 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
#!/usr/bin/env bash | |
# Tested for Ubuntu 12.04 | |
[[ "$(id -u)" -ne "0" ]] && echo "must be root!" && exit 1 | |
RBVER="1.9.3-p194" | |
apt-get update | |
apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev wget rsync | |
# Install Ruby | |
cd /tmp | |
wget "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-${RBVER}.tar.bz2" | |
tar -xjf ruby-${RBVER}.tar.bz2 | |
cd ruby-${RBVER}/ | |
./configure --prefix=/usr/local | |
make | |
make install | |
gem install chef ruby-shadow --no-ri --no-rdoc | |
mkdir -p /var/chef/cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment