Adding a dependency is easy—now we can use the recipes from MySQL inside of the lamp cookbook. Robin adds a simple database.
- [Instructor] We've finished setting up the Linux…and Apache portions of our LAMP Stack, and we're ready…to go ahead and add a database to the mix.…The MySQL Community Cookbook on the Chef's Supermarket…is here to help us configure a custom resource…for building a MySQL database.…You'll see this cookbook is maintained by Chef,…and if you scroll down through the read me,…past the system requirements and platform support,…you'll see a short blurb about the usage for the cookbook.…It mentions that we can use the MySQL service resource…in order to configure a basic MySQL instance.…
Scrolling further through it,…you'll eventually find the full configuration options using…the MySQL service resource, and the MySQL config resource.…We're going to use this cookbook…to set up a basic MySQL configuration.…I'm back inside of my LAMP cookbook.…Inside of the metadata file,…we've added a dependency on the HTTPD cookbook.…We can continue adding dependencies…and installing them with Berkshelf.…
Underneath our dependency for HTTPD,…
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.