Introduction to Chef - Testing Your Automation Code

This is a hands-on tutorial that will cover the basics that everyone needs to know about how to test your automation code. We’ll start off with a quick introduction to Chef and work our way through writing a fully-tested cookbook or two, writing automated tests that will help ensure the cookbook performs the way we expect. Welcome to the world of test-driven infrastructure!

Hands-on exercises throughout the tutorial will reinforce the material discussed.

Who should attend
Anyone responsible for managing infrastructure, especially those who are interested in automating the provisioning and management of said infrastructure using state-of-the-art tools and practices.

Take back to work
A working code base that includes samples for building out testable infrastructure components.

Topics include:

  • Introduction to Chef
  • Resources, Recipes, and Cookbooks
  • Test driven Development (TDD)
  • Testing that a policy is applied successfully
  • Testing that the server is in the desired state

Pre-Requisites

  • Watch Overview of Chef (45 minutes) on learnchef.com
  • Bring wifi-enabled laptop to the workshop, either Ubuntu 12.04+, Mac OS X 10.8+ or Windows 7+.

    Install:

    • ChefDK (http://downloads.chef.io/chef-dk)
    • SSH/SCP (OpenSSH, puTTY/WinSCP or equivalent)
    • Programmer’s text editor (Atom, Vi/Vim, Emacs, Sublime Text, or equivalent)
  • Room: 
    Room 2
    Time Slot: 
    09:00-13:00