O'Reilly logo

Puppet 4.10 Beginner's Guide - Second Edition by John Arundel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 and the distinction between defining a class and declaring a class, and also learn how to use parameters with classes and how to declare appropriate data types for your parameters. 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 classes a few times so far in this book, without really explaining them. Let's ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required