Skip to content

Instantly share code, notes, and snippets.

@he9lin
Forked from ryanb/chef_solo_bootstrap.sh
Last active December 15, 2015 01:29
Show Gist options
  • Save he9lin/5180048 to your computer and use it in GitHub Desktop.
Save he9lin/5180048 to your computer and use it in GitHub Desktop.
Chef solo bootstrap with Berkshelf
```
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev libxslt-dev git-core autoconf bison libssl-dev libreadline6-dev libncurses5-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz
tar -xzf ruby-2.1.4.tar.gz
cd ruby-2.1.4/
./configure --prefix=/usr/local --with-readline-dir=/usr/include/readline
make
make install
gem install chef -v 11.12.4
gem install ruby-shadow bundler --no-ri --no-rdoc
```
@he9lin
Copy link
Author

he9lin commented Jan 19, 2014

curl -L https://gist.github.com/he9lin/5180048/raw/c9a053e10ec62f5388fa11ca7b17f2c5341f8517/chef_solo_bootstrap.sh | bash

@he9lin
Copy link
Author

he9lin commented Oct 16, 2014

Add the following for readline apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev

@he9lin
Copy link
Author

he9lin commented Oct 16, 2014

#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev libxslt-dev git-core autoconf bison libssl-dev libreadline6-dev libncurses5-dev
cd /tmp
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz
tar -xzf ruby-2.1.4.tar.gz
cd ruby-2.1.4/
./configure --prefix=/usr/local --with-readline-dir=/usr/include/readline
make
make install
gem install chef ruby-shadow bundler foreman --no-ri --no-rdoc

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