Skip to content

Instantly share code, notes, and snippets.

@brynary
Forked from jasherai/build_chef_0.8
Created December 29, 2009 19:38
Show Gist options
  • Save brynary/265523 to your computer and use it in GitHub Desktop.
Save brynary/265523 to your computer and use it in GitHub Desktop.
# ec2 ami-1515f67c
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb
sudo gem sources -a http://gems.opscode.com
sudo gem sources -a http://gemcutter.org # for nanite
sudo gem install cucumber merb-core nanite jeweler uuidtools json --no-ri --no-rdoc
mkdir ~/src
cd ~/src
git clone git://github.com/opscode/chef.git
git clone git://github.com/opscode/ohai.git
cd ohai
sudo rake install
cd ../chef
sudo rake install
mkdir -p /tmp/chef-solo
cd /tmp/chef-solo
git clone git://github.com/danielsdeleo/cookbooks.git
cd cookbooks
# Create ~/chef.json:
{
"bootstrap": {
"chef": {
"url_type": "http",
"init_style": "runit",
"path": "/srv/chef",
"serve_path": "/srv/chef",
"server_fqdn": "localhost"
}
},
"recipes": "bootstrap::server"
}
# End of file
# Create ~/solo.rb:
file_cache_path "/tmp/chef-solo"
cookbook_path "/tmp/chef-solo/cookbooks"
# End of file
git checkout 08boot
sudo /var/lib/gems/1.8/bin/chef-solo -j ~/chef.json -c ~/solo.rb -l debug
# couch works with CHEF-737 fixes pushed to github.com/btm/cookbooks origin/08boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment