-
-
Save crmaxx/5495058 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
echo -e "\033[32m => Updating reps info.." && tput sgr0 | |
apt-get -y update | |
echo -e "\033[32m => Installing depends.." && tput sgr0 | |
apt-get -y install build-essential tklib zlib1g-dev libssl-dev libreadline-gplv2-dev libxml2 libxml2-dev libxslt1-dev libyaml-dev libffi-dev libgdbm-dev | |
echo -e "\033[32m => Upgrading dist.." && tput sgr0 | |
apt-get -y upgrade | |
cd /tmp | |
echo -e "\033[32m => Installing ruby-1.9.3-p392.." && tput sgr0 | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.bz2 | |
tar -xvjf ruby-1.9.3-p392.tar.bz2 | |
cd ruby-1.9.3-p392/ | |
./configure --prefix=/usr/local | |
make | |
make install | |
echo -e "\033[32m => Installing chef.." && tput sgr0 | |
gem install chef knife ruby-shadow --no-ri --no-rdoc | |
echo -e "\033[32m => Creating the chef dir.." && tput sgr0 | |
mkdir -p /var/chef | |
echo -e "\033[32m => Done." && tput sgr0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For install
curl -L https://raw.github.com/gist/5495058/chef_solo_bootstrap.sh | bash