Skip to content

Instantly share code, notes, and snippets.

@btm
Created November 25, 2009 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 16 You must be signed in to fork a gist
  • Save btm/242523 to your computer and use it in GitHub Desktop.
Save btm/242523 to your computer and use it in GitHub Desktop.
chef 0.8 alpha installation
# 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 zlib1g-dev libxml2-dev
sudo gem sources -a http://gems.opscode.com
sudo gem install cucumber merb-core jeweler uuidtools json libxml-ruby --no-ri --no-rdoc
mkdir ~/src
cd ~/src
git clone git://github.com/opscode/chef.git
git clone git://github.com/opscode/ohai.git
git clone git://github.com/opscode/mixlib-log
# http://tickets.opscode.com/browse/CHEF-823
cd mixlib-log
sudo rake install
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
# Setup cookbooks
cd
git clone git://github.com/opscode/chef-repo.git
cd chef-repo
rm cookbooks/README
git clone git://github.com/opscode/cookbooks.git
sudo /var/lib/gems/1.8/bin/knife cookbook upload --all -u chef-webui -k /etc/chef/webui.pem -o cookbooks
# Create admin user?
# http://tickets.opscode.com/browse/CHEF-839
sudo /var/lib/gems/1.8/bin/chef-server-webui -p 4002
# Start the WebUI
sudo /var/lib/gems/1.8/bin/chef-server-webui -p 4002 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment