Chapter 8. Classes, roles, and profiles

 

Our life is frittered away by detail. Simplify, simplify!

 
 --Henry David Thoreau

In this chapter you will explore the details of Puppet classes, the distinction between defining a class and including the class, how to supply parameters to classes, and how to declare classes with parameters and specify appropriate data types for them. You'll learn how to create defined resource types, and how they differ from classes. You'll also see how to organize your Puppet code using the concepts of nodes, roles, and profiles.

Classes, roles, and profiles

Classes

We've come across the class concept a few times so far in this book, without really explaining ...

Get Puppet 5 Beginner's Guide - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.