In this video, Robin talks about Ruby, the domain specific language (DSL) for Chef and how configuration instructions are written and evaluated.
- [Instructor] Now that you understand…what a Chef resource is, we can think about how to use…Ruby appropriately.…A resource again is a statement of configuration policy.…And actually most built in Chef resources can accomplish…the configuration tasks that you need.…Chef resources are designed to describe configurations…on many different platforms and be versatile enough…to fit your needs.…In other words use Chef resources whenever possible.…
Remember our definition of a Chef resource.…When we use them we describe the type…of resource that we're configuring.…It's name and then any properties…we'd like to take action with.…This is the basic structure of any…Chef resource that you'll work with.…What I want you to understand about this…is that Chef resources are authored with Ruby syntax…and have a .rb Ruby file extension.…Recipes contain Chef resources.…
However, Chef resources are not pure Ruby code…and cannot be run inside of a Ruby interpreter…like Ruby IRB.…It's important to understand that only the Chef client…
Author
Released
5/18/2017- 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
Duration
Views
Related Courses
-
Code Clinic: Ruby
with Kevin Skoglund5h 42m Intermediate -
Setting up a Red Hat Enterprise Linux Server
with Sandra Toner2h 46m Intermediate -
DevOps Foundations
with Ernest Mueller2h 53m Beginner
-
Introduction
-
Welcome1m 28s
-
What you should know2m 12s
-
My lab environment2m 47s
-
-
1. Getting Started with Chef
-
What is Chef?5m 3s
-
Your first Chef recipe9m 16s
-
2. From Recipes to Cookbooks
-
Resources and recipes6m 8s
-
Test and repair8m 27s
-
The Apache cookbook9m 50s
-
Ruby and resources3m 59s
-
Templates and embedded Ruby7m 11s
-
-
3. The Chef Server
-
Get started with hosted Chef8m 15s
-
Provision nodes with AWS2m 2s
-
Bootstrap a node7m 50s
-
Test deployments with Kitchen11m 54s
-
4. Going Full Scale
-
Manage multiple nodes7m 15s
-
Chef Supermarket5m 31s
-
Wrapper cookbooks10m 5s
-
Deploy the haproxy cookbook5m 25s
-
-
Conclusion
-
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.
CancelTake 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.
Share this video
Embed this video
Video: Ruby and resources