Skip to content

Instantly share code, notes, and snippets.

@marekstachura
Forked from Wallsays/bootstrap.sh
Last active August 29, 2015 13:58
Show Gist options
  • Save marekstachura/9997727 to your computer and use it in GitHub Desktop.
Save marekstachura/9997727 to your computer and use it in GitHub Desktop.
Chef bootstrap, Ruby 2.1.1, Debian 7
#!/usr/bin/env bash
apt-get -y update
# Install dependencies
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-dev libyaml-dev libcurl4-openssl-dev curl
# Install Ruby 2.1.1 from source
wget ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz
tar -xvzf ruby-2.1.1.tar.gz
cd ruby-2.1.1/
./configure --prefix=/usr/local
# Make
sudo make install
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc
sudo gem install bundler
# Install Chef
gem install chef ruby-shadow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment