If a specific node is classified in both a node group and site.pp, what is the expected behavior during a Puppet agent run?

Prepare for the Puppet Certified Professional Test with flashcards and multiple choice questions, each with hints and explanations. Gear up for your exam!

When a specific node is classified in both a node group and site.pp, it leads to a situation where there might be conflicting definitions. In Puppet, site.pp generally serves as the primary manifest for classifying nodes, but when the same node is also included in a node group with potentially different parameters or classes, it can create ambiguity.

In this case, Puppet will attempt to compile the configuration for the node and encounter a conflict between the classifications provided in the node group and those in site.pp. This can lead to a compilation error because Puppet won’t be able to resolve which set of instructions to prioritize, resulting in a situation where it cannot successfully generate the catalog for that node.

Therefore, it's expected that a compiling error will occur, indicating the necessity for clarity in classification and the importance of avoiding overlapping definitions in different locations within the Puppet manifests.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy