Skip to content

Instantly share code, notes, and snippets.

@takumn
Last active December 14, 2015 16:19
Show Gist options
  • Save takumn/5114132 to your computer and use it in GitHub Desktop.
Save takumn/5114132 to your computer and use it in GitHub Desktop.
Install Chef on Amazon Linux
sudo su -

Packages Installation

yum -y update
yum -y groupinstall "Development Tools"
yum -y install readline-devel openssl-devel zlib-devel curl-devel ncurses-devel gdbm-devel sqlite-devel

Ruby Intallation with rbenv

git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
mkdir -p ~/.rbenv/plugins
cd ~/.rbenv/plugins
git clone git://github.com/sstephenson/ruby-build.git
rbenv install 2.0.0-p0
rbenv global 2.0.0-p0

Chef Installation

echo 'gem: --no-ri --no-rdoc' > ~/.gemrc
gem install chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment