All you need for cooking with Chef and Vagrant on Windows, shrink-wrapped in a portable package:
- pre-configured Chef Repo with Vagrantfile to bring up a ready-to-use Chef Server
- devkit enhanced Ruby 1.9.3 with lots of useful gems pre-installed:
- basic gems:
- testing-related:
- foodcritic (linting for your cookbooks)
- chefspec (rspec examples for chef_run/cookbooks)
- fauxhai (for mocking ohai attributes)
- minitest-chef-handler (run smoke tests on the converged node)
- cucumber-nagios (cucumber steps for systems testing)
- test-kitchen (the "holistic test runner" from Opscode)
- other:
- veewee (for building vagrant baseboxes)
- sahara (lets you take and restore virtualbox snapshots)
- knife-solo (if you prefer to work in chef-solo mode)
- mccloud (like vagrant but for the cloud not local vms)
- knife-server (for bootstrap/backup/restore of chef servers)
- vagrant-vbguest (keeps your vbox guestadditions in sync)
- supporting tools such as:
- Console2 (with ansicon)
- SublimeText2 (with additional packages for Chef and Cucumber)
- PortableGit (preconfigured with kdiff3 as diff/merge tool)
- putty
- walkthrough tutorial and example cookbooks
The only requirement for using the devpack is a recent version of VirtualBox (couldn't make that one portable).
As a prerequisite for building bill's kitchen you need 7zip installed in C:\Program Files\7-Zip\7z.exe
.
Build the kitchen:
gem install bundler
bundle install
rake build
This might take a while (you can go fetch a coffee). It will download the external dependencies and assemble the kitchen in the target/build
directory, which is then packaged as target/bills-kitchen-<version>.7z
Make sure you have VirtualBox installed, then:
- unzip the
target/bills-kitchen-<version>.7z
somewhere - mount the kitchen to the
W:\
drive by double-clicking themount-w-drive.bat
file - click
W:\Launch Console.lnk
to open a command prompt - in the command prompt run
W:\set-env.bat
to set up the PATH etc - walk through the GETTING_STARTED tutorial to get familiar with Vagrant, Chef & Co
- continue with the COOKBOOK_DEVELOPMENT guide and start cooking your own recipes!