Adding classes to nodes is called classification. Nodes can be classified individually in site.pp but it's better to think of them in more general terms. Use regexes to match based on node names.
- [Instructor] Now that we've got our additional nodes … to manage, we'll need to ask definitions to site.pp. … It's possible to add definitions similar … to the one we just created for the master, … but there are more dynamic options. … We can use regular expressions to match the names … so we can establish a naming convention … for those nodes and site.pp will pick up additional nodes … matching that pattern. … Let's start by opening up the site.pp. … That's under manifests, site.pp, … and then click the edit button. … For our example, we'll create a rule for nodes … that start with the string web. … To do that, we'll use the word node here again, … and then we'll use two forward slashes … to define a regular expression. … And in between those, … I'm going to use the carrot character, … and this just means the beginning of the line. … It'll match the beginning of the line … and then whatever comes after that. … And then I can just say web. … Now technically, we could do something like dot star here, …
- 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.