/README.org
http://github.com/dysinger/chef-box · Org · 100 lines · 73 code · 27 blank · 0 comment · 2 complexity · c6c8db38488e3fec82f0d3c33d077539 MD5 · raw file
- #+Title:Chef Box: Chef Vagrant Boxes & Playground
- #+AUTHOR:Tim Dysinger
- #+EMAIL:tim@dysinger.net
- #+DATE:2011-06-26
- This project enables you to automatically build a complete set of
- [[http://www.ubuntu.com/][Ubuntu]] boxes for use with [[http://vagrantup.com][Vagrant]]. The boxes are built with the
- [[http://wiki.opscode.com/display/chef/Package%2BInstallation%2Bon%2BDebian%2Band%2BUbuntu][Official OpsCode Chef 0.10.4 Ubuntu Packages]] baked in. This means you
- can start either a Chef Server or Client Node easily at boot time.
- Also included in this project is the Vagrant scaffolding to launch a
- Chef cluster on your Desktop. The default 'vagrant up' starts a Chef
- Server & 2 Chef Client Nodes. The nodes are setup to automatically
- join the Chef cluster. You can practice your cookbook, search, knife
- and shef skills really easily with 3 disposable nodes. See the
- examples below for more info.
- You can also merge the contents of this project into your existing
- [[https://github.com/opscode/chef-repo][Chef Repo]] and record, as an artifact in your git repository, how you
- built your Vagrant Box instead of it being mystery-meat from the
- interweb cache.
- * Requirements
- - [[http://www.virtualbox.org/wiki/Downloads][VirtualBox]] 4.1.2
- - [[http://rvm.beginrescueend.com/][RVM]] latest
- * Setup
- #+BEGIN_SRC: sh
- gem install bundler
- bundle install
- #+END_SRC
- * Build
- Build a Natty 64bit Box [ Warning: Building a Vagrant Box takes
- about 20 minutes on my i7 MacBook Pro. ]
- #+BEGIN_SRC: sh
- rake box:natty64
- #+END_SRC
- Build a LTS Lucid 32bit Box
- #+BEGIN_SRC: sh
- rake box:lucid32
- #+END_SRC
- Build All Boxes [ Warning: Takes several hours to build all 32 & 64
- bit boxes. Do this overnight. ]
- #+BEGIN_SRC: sh
- rake box:all
- #+END_SRC
- * Launch
- Launch a 3-Node Natty64 Cluster
- #+BEGIN_SRC: sh
- vagrant up
- #+END_SRC
- Launch a 3-Node Lucid32 Cluster
- #+BEGIN_SRC: sh
- BOX=lucid32 vagrant up
- #+END_SRC
- Only 1 Chef Server & 1 Chef Client Node
- #+BEGIN_SRC: sh
- vagrant up chef.vm
- vagrant up node0.vm
- #+END_SRC
- * Knife
- Works Anywhere (Host or Guest)
- #+BEGIN_SRC: sh
- knife node list
- knife node show chef.vm
- knife search node "name:node*.vm"
- knife cookbook list
- knife cookbook upload ...
- knife role list
- knife role from file ...
- knife node run_list add ...
- knife ssh "*:*" "sudo chef-client" -a ip -x vagrant -i .ssh/id_rsa --no-host-key-verify
- #+END_SRC
- * Changelog
- *** 0.5 Works with VirtualBox 4.0.10. Rebuild your VMS.
- *** 0.6 Works with VirtualBox 4.1.0. & Vagrant 0.8.5. Rebuild your VMS.
- *** 0.6.1 Works with VirtualBox 4.1.2 & Vagrant 0.8.5
- * License [[LICENSE][Apache 2]]