Created
May 11, 2012 06:16
-
-
Save reedlaw/2657879 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo
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 install -y python-software-properties build-essential | |
apt-add-repository -y ppa:brightbox/ruby-ng | |
apt-get update | |
apt-get install -y ruby1.9.3 | |
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc | |
gem install chef | |
mkdir /etc/chef | |
cat <<EOF >/etc/chef/solo.rb | |
file_cache_path "/var/chef" | |
cookbook_path "/var/chef/cookbooks" | |
json_attribs "https://s3.amazonaws.com/sb-personas/node.json" | |
recipe_url "https://s3.amazonaws.com/sb-personas/chef-solo.tar.gz" | |
EOF | |
mkdir /var/chef |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment