Skip to content

Instantly share code, notes, and snippets.

@cpageler93
Last active August 29, 2015 14:06
Show Gist options
  • Save cpageler93/66080d09ded47272116a to your computer and use it in GitHub Desktop.
Save cpageler93/66080d09ded47272116a to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo (with Ruby 2.1.2)
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar -xvzf ruby-2.1.2.tar.gz
cd ruby-2.1.2/
./configure --prefix=/usr/local
sudo make
sudo make install
sudo gem install chef ruby-shadow --no-ri --no-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment