Skip to content

Instantly share code, notes, and snippets.

@reedlaw
Created May 11, 2012 06:16
Show Gist options
  • Save reedlaw/2657879 to your computer and use it in GitHub Desktop.
Save reedlaw/2657879 to your computer and use it in GitHub Desktop.
Bootstrap Chef Solo
#!/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