# Chef, Puppet and Salt

> Agent-based configuration management tools still found in large and long-lived enterprise fleets. Free notes, key concepts, resources and a mini project.

Canonical: https://www.internhack.in/roadmaps/tracks/devops/chef-puppet
Last updated: 2026-11-28

Agent-based configuration management tools still found in large and long-lived enterprise fleets.

Advanced · about 4 hours · difficulty 3/5

Learn first: [Configuration Management with Ansible](https://www.internhack.in/roadmaps/tracks/devops/ansible)

Before Ansible and containers took over, large companies managed thousands of servers with **agent-based** tools. Many still do, so recognising them is useful even if you never start a new project with them.

### How agent-based tools work

An agent on every node checks in with a central server on a schedule, pulls its desired configuration, applies it and reports back. This gives **continuous enforcement**: if someone edits a file by hand, the next run puts it back. The cost is running and upgrading the server and agents.

### The main tools

- **Puppet**: a declarative DSL of **resources** grouped into **classes** and **modules**; **Hiera** separates data from code; the **PuppetDB** stores facts and reports.
- **Chef**: Ruby-based **recipes** grouped into **cookbooks**, with **roles** and **environments**; Chef Infra Client runs on nodes. Test Kitchen and InSpec cover testing and compliance.
- **Salt**: a fast event bus between a master and **minions**, with **states** in YAML and remote execution built in; can also run agentless over SSH.

### Working with them as a newcomer

Learn to read a manifest or cookbook, find where a setting comes from (node data, role, environment), and do a dry run (`puppet agent --noop`, `chef-client --why-run`). Migrations away from these tools usually move base configuration into images and app configuration into containers.

**Good enough to move on:** you can explain push vs pull configuration management, read a simple Puppet manifest or Chef recipe, and describe how you would migrate one role to Ansible or an image build.

## Key concepts

- **Pull-based agents and convergence**
- **Puppet manifests, modules and Hiera**
- **Chef recipes and cookbooks**
- **Salt states and minions**
- **Dry runs and compliance checks**

## Mini project

Write the same small configuration (a user, a package and a config file) as an Ansible role and as a Puppet manifest, then write a paragraph comparing push vs pull enforcement.

## Check yourself

Someone edits a config file by hand on a Puppet-managed node. What happens at the next agent run, and how is that different from an Ansible-managed node?

## Free resources

- [Puppet documentation](https://www.puppet.com/docs) (Puppet)
- [Chef documentation](https://docs.chef.io/) (Progress Chef)
- [Salt documentation](https://docs.saltproject.io/) (Salt Project)

Previous: [Configuration Management with Ansible](https://www.internhack.in/roadmaps/tracks/devops/ansible) · Next: [Continuous Integration and Delivery](https://www.internhack.in/roadmaps/tracks/devops/ci-cd-concepts)

## More in Infrastructure as Code

- [Infrastructure as Code Principles](https://www.internhack.in/roadmaps/tracks/devops/iac-concepts)
- [Terraform and OpenTofu](https://www.internhack.in/roadmaps/tracks/devops/terraform)
- [Pulumi](https://www.internhack.in/roadmaps/tracks/devops/pulumi)
- [CloudFormation, CDK and Bicep](https://www.internhack.in/roadmaps/tracks/devops/cloudformation-cdk)
- [Configuration Management with Ansible](https://www.internhack.in/roadmaps/tracks/devops/ansible)
- [Chef, Puppet and Salt](https://www.internhack.in/roadmaps/tracks/devops/chef-puppet)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [DevOps Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/devops)
