Originally published on arnesund.com
When developing Chef cookbooks, Knife and Test Kitchen (hereafter just "Kitchen") are essential tools in the workflow. Both tools can be set up to use OpenStack to make it easy to create VMs for testing regardless of the capabilities of the workstation used. It's great for testing some new recipe in a cookbook or making sure changes do not break existing cookbook functionality. This post will go through the configuration of both tools to ensure they use OpenStack instead of the default Vagrant drivers.
Install software and dependencies
First, it is necessary to install the software, plugins and dependencies. Let's start with some basic packages:
sudo apt-get install ruby1.9 git sudo apt-get install make autoconf gcc g++ zlib1g-dev bundler
Chef Development Kit
The Chef Development Kit is a collection of very useful tools for any cookbook developer. It includes tools like Knife ...