6

Relationships, Ordering, and Scope

In this chapter, we will be discussing relationships, ordering, and scope in Puppet. These topics are often considered complicated because Puppet’s approach differs greatly from traditional languages. However, we will show you how to manage these aspects effectively and avoid unnecessary complexities.

We will start by discussing Puppet’s approach to relationships and ordering. By default, Puppet treats resources as independent and can apply them in any order in the catalog. However, where ordering is necessary, we will show you how to use metaparameters such as before, after, notify, and subscribe to enforce ordering and create relationships between resources.

After that, we will cover the concept of containment. ...

Get Puppet 8 for DevOps Engineers 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.