PageRenderTime 42ms CodeModel.GetById 2ms app.highlight 38ms RepoModel.GetById 1ms app.codeStats 0ms

/README.org

http://github.com/dysinger/chef-box
Org | 100 lines | 73 code | 27 blank | 0 comment | 2 complexity | c6c8db38488e3fec82f0d3c33d077539 MD5 | raw file
  1#+Title:Chef Box: Chef Vagrant Boxes & Playground
  2#+AUTHOR:Tim Dysinger
  3#+EMAIL:tim@dysinger.net
  4#+DATE:2011-06-26
  5
  6This project enables you to automatically build a complete set of
  7[[http://www.ubuntu.com/][Ubuntu]] boxes for use with [[http://vagrantup.com][Vagrant]].  The boxes are built with the
  8[[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
  9can start either a Chef Server or Client Node easily at boot time.
 10
 11Also included in this project is the Vagrant scaffolding to launch a
 12Chef cluster on your Desktop.  The default 'vagrant up' starts a Chef
 13Server & 2 Chef Client Nodes.  The nodes are setup to automatically
 14join the Chef cluster.  You can practice your cookbook, search, knife
 15and shef skills really easily with 3 disposable nodes.  See the
 16examples below for more info.
 17
 18You can also merge the contents of this project into your existing
 19[[https://github.com/opscode/chef-repo][Chef Repo]] and record, as an artifact in your git repository, how you
 20built your Vagrant Box instead of it being mystery-meat from the
 21interweb cache.
 22
 23* Requirements
 24
 25  - [[http://www.virtualbox.org/wiki/Downloads][VirtualBox]] 4.1.2
 26  - [[http://rvm.beginrescueend.com/][RVM]] latest
 27
 28* Setup
 29
 30  #+BEGIN_SRC: sh
 31gem install bundler
 32bundle install
 33  #+END_SRC
 34
 35* Build
 36
 37  Build a Natty 64bit Box [ Warning: Building a Vagrant Box takes
 38  about 20 minutes on my i7 MacBook Pro. ]
 39
 40  #+BEGIN_SRC: sh
 41rake box:natty64
 42  #+END_SRC
 43
 44  Build a LTS Lucid 32bit Box
 45
 46  #+BEGIN_SRC: sh
 47rake box:lucid32
 48  #+END_SRC
 49
 50  Build All Boxes [ Warning: Takes several hours to build all 32 & 64
 51  bit boxes. Do this overnight. ]
 52
 53  #+BEGIN_SRC: sh
 54rake box:all
 55  #+END_SRC
 56
 57* Launch
 58
 59  Launch a 3-Node Natty64 Cluster
 60
 61  #+BEGIN_SRC: sh
 62vagrant up
 63  #+END_SRC
 64
 65  Launch a 3-Node Lucid32 Cluster
 66
 67  #+BEGIN_SRC: sh
 68BOX=lucid32 vagrant up
 69  #+END_SRC
 70
 71  Only 1 Chef Server & 1 Chef Client Node
 72
 73  #+BEGIN_SRC: sh
 74vagrant up chef.vm
 75vagrant up node0.vm
 76  #+END_SRC
 77
 78* Knife
 79
 80  Works Anywhere (Host or Guest)
 81
 82  #+BEGIN_SRC: sh
 83knife node list
 84knife node show chef.vm
 85knife search node "name:node*.vm"
 86knife cookbook list
 87knife cookbook upload ...
 88knife role list
 89knife role from file ...
 90knife node run_list add ...
 91knife ssh "*:*" "sudo chef-client" -a ip -x vagrant -i .ssh/id_rsa --no-host-key-verify
 92  #+END_SRC
 93
 94* Changelog
 95
 96*** 0.5 Works with VirtualBox 4.0.10. Rebuild your VMS.
 97*** 0.6 Works with VirtualBox 4.1.0. & Vagrant 0.8.5. Rebuild your VMS.
 98*** 0.6.1 Works with VirtualBox 4.1.2 & Vagrant 0.8.5
 99
100* License [[LICENSE][Apache 2]]