Join Robin Beck for an in-depth discussion in this video The MySQL script, part of Chef Essential Training.
- [Instructor] Now that we've properly configured…our dependency,…it's time to create a script that will populate…our database with some simple client information…that we can reference with our…soon-to-be-created PHP app.…We can add this simple script…to our wrapper cookbook as a static file.…Inside of the chef-repo directory,…I'm going to add a static file…to my LAMP app cookbook.…Remember the chef generators.…These are used for creating cookbooks,…and cookbook components.…
What we can also do inside of our cookbooks,…is create a static file…that can be copied to our file system with Chef,…meaning you can include static configuration files…inside of cookbooks,…and then use Chef to copy them…to where they belong on a node.…I'll run chef generate file.…I going to place this static file…inside of our new lamp_app cookbook,…and the name of the file will be create-table.sql.…
Taking a look at my LAMP app cookbook,…you can see that it contains a new directory…called Files.…Think of this as following the same rules…as the templates we have worked with before.…
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.