This course is created for people that are starting out with Puppet and want to familiarize themselves with the Roles and Profiles design pattern.
If you want to get a clear explanation of the theory behind Roles and Profiles, supported with practical examples then this is the course for you!
We will cover creating a base profile to manage to generic settings your infrastructure and we will cover a design pattern to handle different platforms in our base profile. Additionally, we will use Hieradata in combination with Profiles and class parameters and employ create_resources to dynamically manage resources using data retrieved from Hiera.
Introduction to the Roles & Profiles course.
Why do we need Roles and Profiles?
A look at component modules.
How can we find the great modules on https://forge.puppet.com
Don't reinvent the wheel! Use modules from the Forge. Here's why!
Roles and Profiles explained
Configuration that is managed for all our machines is included in the profile::base class.
Creating the modules and setting up a profile::base.
Installing a Forge module
Testing our profile::base on a Vagrant box.
We will manage a couple of system users with our profile::base
Get flexible by separating data and code!
Step-by-step walkthrough of migrating from fixed resources to hiera-based resources.
Adding host- or role-specific users with Hiera.
What will we setup in this section?
Setting up the lamp profile class and the corresponding role.
We need to do some node classification to test our new role.
Setting up the correct keys in our hieradata so they will be used by the create_resources function.
How can we use node classfication?
Let's see what we have learned today. A quick summary and thank you!
Ger is a Freelance Puppet consultant and teaches the official courses for Puppet in the Netherlands.
He just loves to explain stuff, both in the classroom and over the internet.
As a consultant, he has helped many companies to implement Puppet, both Open Source and Puppet Enterprise. Ger has done many talks about Puppet Infrastructure related topics at PuppetConf, PuppetCamps, FOSDEM and other conferences.