Skip to content

Instantly share code, notes, and snippets.

@narkisr
Last active August 29, 2015 14:04
Show Gist options
  • Save narkisr/5e37903f1d1bf386ceb5 to your computer and use it in GitHub Desktop.
Save narkisr/5e37903f1d1bf386ceb5 to your computer and use it in GitHub Desktop.
Setting up chef
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