To wrap up, Robin demonstrates that in the future we would want to test our cookbooks using the Kitchen framework and ChefSpec. As a best practice, Robin mentions we could have taken a test driven development approach that would have verified the deployme
- [Instructor] I'm inside of my lamp app cookbook…where I've configured my dot kitchen dot yml file.…I've specified that I'm going to create…an ubuntu 14.04 instance.…And we've also set up some networking specifics…in the path to our data bags.…Now, the kitchen utility is accessible…with the kitchen command.…Adding dash dash help…will show you all of the kitchen commands…that we can run.…There are only a few of these that I use all the time…and I'll demo those for you now.…
The first thing that we'd like to check…is the kitchen list command,…which lists what instances should be created…according to your kitchen yml file.…Kitchen List will display what's called…the kitchen test matrix.…This asks how many machines are you going to create…and how many test suites are you going to execute…against those machines.…We have one testing suite called default…and we're going to run it against…our ubuntu 14.04 machine.…
The most important thing that I use…this command for all the time…is verifying the last action taken…on my virtual machine.…
This intermediate-level course provides insights into the Chef architecture through practical examples and demos, including the deployment of a PHP application on top of a LAMP stack. Instructor Robin Beck walks through recipe development and the various prebuilt cookbooks available from the Chef community Supermarket, and reviews best practices for building wrapper cookbooks that allow you to access recipes from different cookbooks. He also shows how to work more efficiently with knife commands for managing clients, cookbooks, and data.
- Building a setup recipe
- Using cookbooks to organize recipes
- Using community recipes
- Uploading cookbooks
- Using the database cookbook
- Adding PHP to the mix
- Searching with knife
- Testing cookbooks with Kitchen
Skill Level Intermediate
1. Review the Fundamentals
2. Community Code
3. Complete the LAMP Stack
4. The Joy of Test Kitchen
Next steps3m 43s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.