-
-
Save bofrede/5607048 to your computer and use it in GitHub Desktop.
Script to run on a new Linux server, to prepare for Chef.
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 | |
# Run this script, as root, on a prestine server, with: | |
# sudo su | |
# curl -L https://gist.githubusercontent.com/bofrede/5607048/raw/chef_solo_bootstrap.sh | bash | |
apt-get -y update | |
apt-get -y install software-properties-common lib64readline-gplv2-dev | |
apt-get -y install build-essential zlib1g-dev lib64z1-dev libssl-dev libyaml-dev libxml2-dev libxslt1-dev libffi-dev | |
echo 'gem: --no-rdoc --no-ri' > /etc/gemrc | |
ln -s /etc/gemrc ~/.gemrc | |
add-apt-repository ppa:brightbox/ruby-ng | |
apt-get -y install ruby2.2 | |
apt-get -y install ruby2.2-dev | |
apt-get -y install ruby-switch | |
ruby2.2 /usr/bin/ruby-switch --set ruby2.2 | |
gem install bundler chef ruby-shadow | |
mkdir -p /var/chef/cookbooks/main/recipes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment