Each of the manifests you wrote in the previous section declared one respective resource. Resources are the elementary building blocks of manifests. Each has a type (in this case,
service, respectively) and a name or title (
Hello, world! and
puppet). Each resource is unique to a manifest and can be referenced by the combination of its type and name, such as
Service["puppet"]. Finally, a resource also comprises a list of zero or more attributes. An attribute is a key-value pair such as
"enable => false".
Attribute names cannot be chosen arbitrarily. Each resource type supports a specific set of attributes. Certain parameters are available for all resource types, and some names are just very common, ...