The Problem Puppet Solves
Imagine you manage 5 servers. You log in to each one, install packages, edit files and start services. Now imagine 500 servers. Doing it by hand takes too long, servers slowly become different from each other (configuration drift), and nobody remembers exactly what was changed.
Puppet is a configuration management tool. You write down the state you want in simple text files: package nginx installed, file /etc/nginx/nginx.conf with this content, service nginx running. Puppet then makes every server match that description, and keeps it that way.
Key Words
| Term | Meaning |
|---|---|
| Resource | One thing to manage: a package, file, service, user... |
| Manifest | A file ending in .pp that contains Puppet code |
| Class | A named group of resources, for example nginx |
| Module | A folder that packages classes, files, templates and tests for reuse |
| Node | A machine managed by Puppet |
| Agent | Puppet software on each node that asks for and applies its configuration |
| Server (primary server) | Compiles configuration for nodes. Formerly called the master |
| Catalog | The compiled list of resources and their order for one node |
| Facts | Information about a node (OS, IP, memory) collected by Facter |
| Hiera | Key-value data lookup that keeps data separate from code |
| Environment | A separate copy of code and data (production, test) |
| Idempotent | Running it many times gives the same result |
How Puppet Works: Agent and Server
- The agent starts a run and sends its facts to the server over HTTPS with certificates
- The server finds which classes apply to this node, using node definitions, an ENC or Hiera
- The server compiles a catalog: a graph of resources with dependencies
- The agent applies the catalog: it checks each resource and changes only what is different
- The agent sends a report of what changed, what failed and how long it took
You can also run Puppet without a server using puppet apply. It is perfect for learning, testing and for small setups.
Idempotency and Drift Correction
Suppose your code says package { 'nginx': ensure => installed }. The first run installs nginx and reports a change. The second run sees nginx already installed and reports no change. If someone removes nginx by hand, the next run installs it again. This is continuous enforcement.
A First Look at Puppet Code
The code reads almost like English: it declares three resources with their desired state. The order in the file does not decide the order of execution; relationships do (you will learn this later).
Editions and the Current Landscape
| Option | What it is |
|---|---|
| Puppet Core (Perforce) | The commercial, supported Puppet agent and server packages distributed by Perforce. Perforce states that it develops and supports Puppet Core versions 8 and 9 as a proprietary product, and open source Puppet 7 reached end of life in April 2025 |
| Puppet Enterprise (PE) | Core plus a web console, role-based access control, orchestration, reporting, Code Manager and support |
| OpenVox | A community-driven open-source fork of Puppet maintained by Vox Pupuli. It provides openvox-agent, openvox-server and openvoxdb packages and aims to stay compatible with Puppet 8 code, with openfact replacing Facter |
| Vox Pupuli | A large community that maintains hundreds of open-source Puppet modules (the puppet/ namespace on the Forge) |
The language, resources, modules and concepts in this course are the same for all of them. Where commands differ (package names, paths) the lessons point it out. In OpenVox the commands still use the familiar names such as puppet, facter and /etc/puppetlabs/.
Puppet vs Other Tools
| Puppet | Ansible | Chef | Terraform | |
|---|---|---|---|---|
| Main job | Configure and continuously enforce servers | Configure and orchestrate, usually on demand | Configure servers | Provision infrastructure |
| Language | Declarative Puppet DSL | YAML playbooks | Ruby DSL | HCL |
| Model | Agent pulls every 30 min (or push with Bolt) | Agentless push over SSH | Agent pull | Run on demand, state file |
| Strength | Large fleets, compliance, drift correction, reporting | Simplicity, ad-hoc tasks | Flexible Ruby code | Cloud resources |
Where Puppet Is Used
- Standard server builds (users, SSH, NTP, monitoring agents)
- Security hardening and compliance (CIS benchmarks) with reports
- Application stacks: web servers, databases, Java apps
- Large Linux and Windows fleets with thousands of nodes
- Network devices, cloud and container hosts
Learning Path in This Course
- Install Puppet and run your first manifest with
puppet apply - Learn the language: resources, variables, conditions, classes
- Core resource types and Forge modules
- Write modules, use Hiera, roles and profiles
- Set up a Puppet server, environments and code deployment
- Test, secure, scale and troubleshoot
- Build projects and prepare for the Puppet Professional certification
Conclusion
Puppet describes the desired state of servers in code, compiles it into a catalog for each node and enforces it repeatedly. It is idempotent, scales to large fleets, and the OpenVox fork keeps an open-source option available.

