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

Node definitions, roles, and profiles

In Chapter 3, Managing your Puppet code with Git, we introduced the node keyword and explained that you can use node definitions to control which resources are applied to a given node. It's time to look at node definitions in a little more detail, and explore more sophisticated ways to organize your manifests, including roles and profiles.

Nodes

As you know, when you apply a manifest to a node, by default Puppet applies all the resources declared in the manifest. When we have more than one node, we probably want different resources applied to different nodes, so how do we do that?

The node keyword introduces a node definition, and all the resources contained in the node definition will only be applied on nodes ...

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