We apply the setup recipe with the chef-client, an agent that runs on any node managed by Chef. Robin demonstrates the command and the purpose of the "run-list".
- [Instructor] Now that you've written…your first Chef recipe, let's go ahead learn how to apply…your Chef code using the chef-client command.…In my terminal session, you should now have access…to the setup recipe you created in the last video.…Taking a look at setup.rb right here in my home directory,…you can see that it contains instructions…to install a package named ntp.…You'll also notice we're going to manage a file…in the etc directory called motd,…the message of the day.…
We'll create that file if it doesn't already exist…and set our permissions on it.…To execute this file, we'll need to use…the chef-client command.…You can type any of the commands you'll see me demonstrating…in the videos, and add on a --help to see the usage…for these individual commands.…Looking at it, you'll see a big list of all the options…that the chef-client command accepts.…We won't need most of these for what we'll be executing…but you should be aware you can run the chef-client…with many different options.…
Now to run the chef-client, we'll need to always execute it…
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.