This document provides an overview of Puppet's configuration language and concepts including resources, classes, nodes, built-in resource types, and best practices like the roles and profiles pattern. It demonstrates how to define a class with resources, include classes in nodes, use Hiera for data lookup, and organize code into reusable modules, profiles, roles, and environments.
3. What is Puppet DSL
● Configuration language
● Declarative as possible
● Similar to how you write configuration files
● Can be extended with Ruby API
Building blocks:
● Resources
● Classes
● Nodes
Official Docs:
https://docs.puppetlabs.com/puppet/3.8/reference/lang_summary.html
4. Resources, Classes & Nodes
Resources:
The fundamental unit for modeling system configurations. Each resource
describes some aspect of a system, like a service that must be running or a
package that must be installed.
Classes:
Group of resources.
Nodes:
Built-in node classification.