-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Puppet 8 for DevOps Engineers
By :

In Puppet, a scope is a level of code that has limited access to variables and default settings for resources. The three levels of scope are top scope, node scope, and local scope. Top scope variables reflect variables that are declared globally, most commonly in the site.pp
manifest file. Node scope variables are assigned in node definitions, which are typically also made in site.pp
or via an External Node Classifier (ENC). For example, variables can be declared in the site.pp
manifest file within a Puppet environment to make them globally available to all nodes. Alternatively, variables can be declared in a node definition in site.pp
or the ENC to be made available at the node level for a particular server or group of servers. site.pp
is a special manifest file in Puppet that contains the main configuration for a Puppet environment. A resource default is a default setting for a resource, which can be overridden in a more specific scope, such as node scope or local scope. The...