Skip to content

Instantly share code, notes, and snippets.

@kbinani
Created December 11, 2012 19:20
Show Gist options
  • Save kbinani/4261212 to your computer and use it in GitHub Desktop.
Save kbinani/4261212 to your computer and use it in GitHub Desktop.
A bootstrap script to install rvm, ruby, and chef.
#!/bin/bash
yum install -y \
gcc-c++ \
patch \
readline \
readline-devel \
zlib zlib-devel \
libyaml-devel \
libffi-devel \
openssl-devel \
make \
bzip2 \
autoconf \
automake \
libtool \
bison \
iconv-devel
echo 'insecure' >> ~/.curlrc
\curl -L https://get.rvm.io | bash -s stable
cat ~/.curlrc | grep -v 'insecure' > /tmp/.curlrc.temp
mv -f /tmp/.curlrc.temp ~/.curlrc
source /etc/profile
command rvm install 1.9.3
rvm use 1.9.3
gem install chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment