Resources are the building blocks of Puppet code. Explore some of the most used built-in resource types
- [Instructor] Let's talk about the most basic…building block of Puppet code, the resource.…Resources are a way of defining…a specific unit of configuration.…For example, a file or a system user…would be a single resource.…This is an example of a file resource declaration.…There are a few important things to know.…First, there's this line.…This is the name of the resource declaration.…For file resources, this name is also the full path…to the file you're managing.…
The name, or name var line, as it's sometimes called,…should end with a colon after the quote.…The next line is the first parameter of the resource.…In this case, we're telling Puppet…to ensure that this is a file.…Other options in this case are directory or link.…You could also set a resource type…to ensure absent, which will delete the file.…The syntax for assigning parameters…uses the equal sign followed by the greater than symbol…to form a kind of arrow pointing right.…
Sometimes this symbol is called a hash rocket.…The other parameter defines the content of the file.…
- What is Puppet?
- Setting up a Puppet master and control repo
- Using the built-in resource types
- Organizing code with roles and profiles
- Managing more nodes
- Triggering actions (orchestration)
- Gathering system info with facter
- Writing modules
- Using templates
Skill Level Beginner
DevOps Foundations: Infrastructure as Codewith Ernest Mueller2h 6m Intermediate
1. Puppet Overview
What is Puppet?4m 9s
2. Setting Up a Dev Environment
3. First Steps with Puppet
4. Managing More Nodes
Next steps3m 49s
- 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.