Skip to content

Instantly share code, notes, and snippets.

@7hunderbird
Forked from ryanb/chef_solo_bootstrap.sh
Last active March 21, 2016 23:23
Show Gist options
  • Save 7hunderbird/2d7c4b2b9f5270c42293 to your computer and use it in GitHub Desktop.
Save 7hunderbird/2d7c4b2b9f5270c42293 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev -y
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz
tar -xvzf ruby-2.3.0.tar.gz
cd ruby-2.3.0/
./configure --prefix=/usr/local
make
make install
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