Last active
October 7, 2015 10:48
-
-
Save freegenie/3153784 to your computer and use it in GitHub Desktop.
First installation file for chef
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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