Skip to content

Instantly share code, notes, and snippets.

@crmaxx
Forked from ryanb/chef_solo_bootstrap.sh
Last active December 16, 2015 20:49
Show Gist options
  • Save crmaxx/5495058 to your computer and use it in GitHub Desktop.
Save crmaxx/5495058 to your computer and use it in GitHub Desktop.
#!/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
@crmaxx
Copy link
Author

crmaxx commented May 8, 2013

For install curl -L https://raw.github.com/gist/5495058/chef_solo_bootstrap.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment