The wrapper cookbook design pattern is commonly used with community cookbooks. Robin demonstrates best practices and how dependencies will be resolved with Berkshelf.
- [Instructor] We've decided to use some community code…to make our web server application a little bit robust.…But how do we utilize community code?…Well, I want to discourage you from simply downloading…the cookbook off the supermarket and beginning to…make changes to it directly.…This is because we don't want to fork…an upstream cookbook,…meaning you don't want to divorce yourself from the…code base that created it.…If updates to the parent cookbook are released through time,…it's great to have access to those changes.…
Instead, we create what's called a wrapper cookbook.…A wrapper cookbook is a cookbook that we maintain.…Instead of downloading their code directly, we wrap…their code with our own cookbook.…This gives us access to all of the recipes,…custom resources, and node attributes defined inside…of the community cookbook.…And if a new version is released, we can simply…plug and play.…How do we do this?…Now, a note on your setup before we proceed with…these exercises.…
For the rest of class, I want you to be aware that…
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.