Skip to content

Instantly share code, notes, and snippets.

@freegenie
Last active October 7, 2015 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freegenie/3153784 to your computer and use it in GitHub Desktop.
Save freegenie/3153784 to your computer and use it in GitHub Desktop.
First installation file for chef
#!/usr/bin/env bash
# Copy this file into the home directory of the sudoer
# user that will run all chef recipes.
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
sudo apt-get -y install rsync
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
sudo make install
sudo gem install chef ruby-shadow --no-ri --no-rdoc
sudo mkdir -p /etc/chef
echo "Put secret key into /etc/chef/encrypted_data_bag_secret"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment