Created
August 16, 2012 07:35
-
-
Save bugcloud/3368108 to your computer and use it in GitHub Desktop.
Setup chef with rvm to a clean Ubuntu Server
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
#!/bin/sh | |
sudo aptitude install build-essential zlib1g-dev libreadline6-dev libopenssl-ruby git curl wget | |
curl -L https://get.rvm.io | bash -s stable | |
echo 'source ~/.rvm/scripts/rvm' >> ~/.bashrc | |
export PATH=$PATH:$HOME/.rvm/bin | |
rvm pkg install openssl | |
rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr | |
rvm use 1.9.3 | |
echo 'Unless you could run rvm use command, you should run these commands by yourself' | |
echo 'rvm use 1.9.3 --default' | |
echo 'gem install chef --no-rdoc --no-ri' | |
gem install chef --no-rdoc --no-ri |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment