Robin shows how to declare the desired state of a server, including installed packages, file configuration, and services that should be running.
- [Instructor] In the last exercise you watched me…write my first Chef recipe.…You'll notice that recipes are just….rb Ruby files.…But I should warn you that I did not write…any pure Ruby code.…You saw me demonstrate using the Chef client…to manage the contents of a file…with the block of code you see here.…But if it's not Ruby code, what kind of code is it?…Well, in Chef we manage any system component…using the concept of a resource.…
Chef resources are a way to manage a system component.…When I write a recipe, those Ruby files,…they are filled with Chef resources.…Let's take a look at some examples.…This is the package resource.…Can you see what it's doing?…These instructions say that a package named httpd,…commonly called apache, should be installed.…You should understand that any built-in Chef resource…also ensures item potency behind the scenes.…
This means that if the package is already installed,…Chef will not attempt to reinstall it,…it will simply ensure that the desired state is enforced.…In this example the service named ntp…
- Configuration management
- Using Chef
- Installing the Chef development kit (ChefDK)
- Provisioning a CentOS instance
- Using recipes and the Apache cookbook
- Working with nodes and node objects
- Using templates and embedded Ruby
- Hosting a Chef server
- Provisioning nodes with AWS
- Testing deployments with Kitchen
- Exploring the Chef Supermarket
- Resolving dependencies with Berkshelf
- Working with server roles, environments, and data bags
Skill Level Beginner
Setting up a Red Hat Enterprise Linux Serverwith Sandra Toner2h 46m Intermediate
1. Getting Started with Chef
2. From Recipes to Cookbooks
3. The Chef Server
4. Going Full Scale
Next steps3m 9s
- 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.