As your Puppet codebase grows, it's important to keep it organized. The roles and profiles pattern is a simple way of organizing your code that's become an industry standard. Create a site directory in the control repo, and two simple custom modules to set up some basic profiles and roles.
- [Instructor] In addition to the modules from the Forge,…you'll want to make some of your own modules.…You can put these inside a directory called site…in the root of your control-repo.…The first two modules we'll create in the site directory…are our roles and profiles.…The roles and profiles pattern is a best practice…for keeping your Puppet code organized.…Profile are the building blocks of your configuration.…Remember all that complex code in the ReadMe…of the NGINX module on the Forge?…That kind of code would go in a profile.…You define a profile as a wrapper…for a subset of configuration.…
Profiles should be limited to…a single unit of configuration,…like the NGINX web server.…If you're managing a database,…that configuration would go in another profile.…Roles define the business role of a machine.…There should be only one role per machine,…and roles should be made up only of profiles.…This keeps your configuration simple and composable.…A role should be the answer to the simple question:…what's this?…If someone were to physically point at a machine,…
- 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.