Last active
August 29, 2015 14:04
-
-
Save narkisr/5e37903f1d1bf386ceb5 to your computer and use it in GitHub Desktop.
Setting up chef
This file contains hidden or 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
if cat /proc/version | grep Ubuntu | |
then | |
apt-get install git ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 make -y | |
elif [ -f /etc/debian_version ]; | |
then | |
apt-get install git ruby1.9.1 ruby1.9.1-dev rubygems -y | |
fi | |
if cat /proc/version | grep Red | |
then | |
yum install git ruby.x86_64 ruby-devel.x86_64 rubygems.noarch -y | |
fi | |
gem install chef --no-ri --no-rdoc --version '= 11.16.2' | |
gem install ruby-shadow --no-ri --no-rdoc --version '= 2.3.4' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment