Instead of creating the web server from scratch, we can use a community cookbook that makes it easy to integrate PHP and a database later on. To do this, we add a dependency on the httpd to the lamp cookbook and create some new node attributes.
- [Instructor] As you saw in the first chapter of class,…it's entirely appropriate to go through…and configure a node directly, using Chef.…We logged into a machine, our Vagrant instance,…built the cookbook, and ran the Chef client in local mode.…This directly applied the cookbook's configuration…to our existing instance.…However, in practice, we'll usually use a Chef server…to distribute our changes.…A Chef server provides a centralized location…for you to store all of your policy, like your cookbooks,…and distribute that policy to a variety of managed nodes.…
These nodes could be running the same cookbooks…or different cookbooks, as defined by the run list.…So a Chef server will provide some amazing benefits…for us moving forward.…The process of attaching a node to your Chef server…is known as bootstrapping.…Bootstrapping is one of the rare instances…where a workstation connects directly to a node.…The workstation, remember,…is the local machine you're working off of…that's configured with the Chef repo directory.…
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.