Skip to content

Instantly share code, notes, and snippets.

@aleskiontherun
Forked from leeky/chef_solo_bootstrap.sh
Last active December 17, 2015 01:10
Show Gist options
  • Save aleskiontherun/5526840 to your computer and use it in GitHub Desktop.
Save aleskiontherun/5526840 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
RUBY_VERSION_MAJOR="2.1"
RUBY_VERSION="2.1.2"
apt-get -y update && apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/${RUBY_VERSION_MAJOR}/ruby-${RUBY_VERSION}.tar.gz
tar -xvzf ruby-${RUBY_VERSION}.tar.gz
cd ruby-${RUBY_VERSION} && ./configure --prefix=/usr/local && make && make install
gem install ohai chef ruby-shadow --no-ri --no-rdoc
cd .. && rm ruby-$RUBY_VERSION.tar.gz && rm -rf ruby-${RUBY_VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment