-
-
Save he9lin/5180048 to your computer and use it in GitHub Desktop.
Chef solo bootstrap with Berkshelf
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
``` | |
#!/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 | |
``` |
Add the following for readline apt-get install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev
#!/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
curl -L https://gist.github.com/he9lin/5180048/raw/c9a053e10ec62f5388fa11ca7b17f2c5341f8517/chef_solo_bootstrap.sh | bash