Now we need to start the database. The database community cookbook makes this simple, Robin adds it as a dependency for the lamp cookbook.
- [Narrator] The last thing that should be bothering…you about our database recipe is how we've hardcoded…in the passwords for our admin username…and also the root database connection password.…For sensitive information, we can store this…type of value inside of a data bag.…Data bags are very similar to node attributes,…storing information in key value pairs.…Let's utilize a data bag.…To create one, we'll first…head over to our terminal session.…Inside of the Chef repo directory, we can make a new…directory called data underscore bags.…
Inside of data bags, we can create…the data bag itself, passwords.…Passwords is just the directory…that will store our data bag items.…Inside of my Sublime Text Editor, I'm going to…create a new file inside of data bag passwords.…This new file, I'm going to save as mysql.jason.…Key value pairs are how we're storing…our data bag information.…
Inside of here, we'll go ahead and define a Jason key value…store system by opening up some curly brackets.…The only real requirement for what can be…
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.