Legacy: Declaring classes with Puppet

A node definition may have Class Declaration related records.

Class declarations associate a Class record to a Node definition. You can add class declarations only to draft node definition.

The Type selection specifies how Puppet nodes that use this node definition should handle the class. Available Type choices are:
  • Exclude: removes the specified class from the node definition if previously included by a parent node definition. If the parent node definition does not include the class, the Exclude choice has no effect.
  • Include: adds the specified class to Puppet nodes that use this node definition.
  • Override: uses the class Parameters from the declared class in place of the existing parameters for that class in the parent node definition. If the parent node definition does not include the class, the Override choice functions as Include.
For node definitions that extend a parent node definition, the Exclude and Override choices remove or update classes defined by the parent node definition. node definitions that do not extend another node definition can only Include classes.
Figure 1. Puppet class declaration