Skip to content

Instantly share code, notes, and snippets.

@schaary
Last active December 15, 2015 03:29
Show Gist options
  • Save schaary/5194856 to your computer and use it in GitHub Desktop.
Save schaary/5194856 to your computer and use it in GitHub Desktop.
Base installation steps to prepair a system for chef solo
#!/usr/bin/env bash
# to install, just type
# curl -L https://gist.githubusercontent.com/schaary/5194856/raw/999388523a620d29d1276dff612cdc1931afb1e2/chef_solo_bootstrap.sh | bash
apt-get -y update
apt-get -y upgrade
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev git-core
cd /tmp
curl -O ftp://ftp.ruby-lang.org/pub/ruby/ruby-2.2.2.tar.gz
tar -xzf ruby-2.2.2.tar.gz
cd /tmp/ruby-2.2.2/
./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