Chef vs Puppet vs Ansible: Configuration Management in 2026
One is agentless and Python-based, the other two run a persistent agent and a domain-specific language. The architecture difference matters more than the syntax.
Key takeaways
- Choose Ansible for new configuration management work, because it is agentless and pushes changes over SSH with YAML playbooks.
- Puppet suits large fleets that need continuous drift correction, since its agent re-applies the catalog every 30 minutes by default.
- Chef fits teams with deep Ruby skills and complex logic.
On this page
Pick Ansible for new configuration management work: it is agentless, pushes over SSH, and needs no central server. Pick Puppet when a large fleet needs continuous drift correction from an always-on agent. Pick Chef only when a Ruby-fluent team needs a real language for complex logic. Chef and Puppet aren't relics, they're architectural tradeoffs that still win in specific estates.
Verified against
ansible-core 2.21.5, Puppet Core 8.22.0, Chef Infra Client 19, against the docs.ansible.com connection guide, the Puppet 8 configuration reference and the docs.chef.io chef_client_systemd_timer resource page. Checked October 2026.
All three solve "make N servers converge to the same known configuration," and all three predate the container era they now mostly coexist with rather than compete against.
The architecture difference that actually matters
Chef and Puppet are both agent-based, pull-model tools: a persistent agent runs on every managed node, periodically pulling the desired-state definition from a central server and applying it. Both default to a 30-minute cycle as of October 2026: Puppet's runinterval setting defaults to 30m, and Chef's chef_client_systemd_timer resource defaults to interval "30min". Chef's configuration is Ruby-based ("recipes" in "cookbooks"); Puppet uses its own declarative DSL ("manifests"). Both require running and maintaining a central server (Chef Server, Puppet Server/PuppetDB) as real infrastructure.
# Chef recipe
package 'nginx' do
action :install
end
service 'nginx' do
action [:enable, :start]
end
# Puppet manifest
package { 'nginx':
ensure => installed,
}
service { 'nginx':
ensure => running,
enable => true,
}
Ansible is agentless, push-model: it connects over SSH (native OpenSSH by default, or WinRM for Windows), runs its Python-based modules remotely, and disconnects. There is no persistent agent, no central server as a hard requirement, and no per-node bootstrap beyond SSH access. Playbooks are YAML, which is both Ansible's biggest usability win and, for anything conditionally complex, a real limitation compared to a real language.
- name: Install and start nginx
hosts: webservers
tasks:
- name: install nginx
apt:
name: nginx
state: present
- name: start nginx
service:
name: nginx
state: started
enabled: true
Where each one actually wins
Ansible wins for most new infrastructure work, and it's not close. No agent to install and keep patched on every node, no central server as a single point of failure to run, and YAML playbooks that a team can read and modify without knowing Ruby or a Puppet-specific DSL. This is why Ansible has become the default recommendation: the operational overhead of agent-based tools is a real, ongoing cost that agentless push avoids entirely, and for the vast majority of "configure these servers" use cases, that cost isn't buying you anything Ansible doesn't already do.
Puppet wins for large, established fleets that need continuous drift enforcement. Puppet's pull model means every node re-converges to desired state on its own schedule without anyone triggering a run. Genuine configuration drift (someone SSHing in and changing something by hand) gets corrected automatically within one run interval rather than at the next deploy. For a large, long-lived fleet where drift is a real, ongoing risk rather than a one-time provisioning concern, that continuous enforcement is a real capability Ansible's push model doesn't have without external scheduling (a cron job running ansible-playbook periodically, which is a real pattern but bolted on, not native).
Chef wins where a team already has deep Ruby expertise and wants a real programming language for genuinely complex configuration logic. Recipes are Ruby, so anything Ansible's YAML+Jinja2 templating would strain against (deeply conditional logic, complex data transformations) is just Ruby code. This is a narrower win than it sounds: most configuration doesn't need a real language's expressiveness, and teams without existing Ruby fluency pay a real learning-curve cost for a capability they may rarely use.
The three side by side
| Tool | Model | Language | Central server | Drift correction | Best fit |
|---|---|---|---|---|---|
| Ansible | Agentless push over SSH/WinRM | YAML + Jinja2 | Optional (AWX/Automation Controller) | Only if you schedule runs | New work, mixed fleets, small teams |
| Puppet | Agent pull, runinterval 30m default | Puppet DSL | Required (Puppet Server, PuppetDB) | Native, every run | Large long-lived fleets, compliance |
| Chef | Agent pull, 30min timer default | Ruby DSL | Chef Infra Server (or Solo/Zero) | Native, every run | Ruby-fluent teams, complex logic |
If you want Puppet-style enforcement from Ansible, the bolt-on is a scheduled run in check mode or apply mode:
ansible-playbook -i inventory.ini playbooks/nginx.yml --check --diff
crontab -l
*/30 * * * * ansible-playbook -i /etc/ansible/inventory.ini /etc/ansible/playbooks/nginx.yml >> /var/log/ansible-drift.log 2>&1
It works, but now you own the scheduler, the logging and the alerting that Puppet gives you for free.
Why this market consolidated toward Ansible
The honest reason Ansible became the default isn't a single killer feature, it's the accumulated cost of what Chef and Puppet require that Ansible doesn't: an agent to install, upgrade, and monitor on every managed node; a central server that's real infrastructure with its own uptime and backup requirements; and a learning curve (Ruby or a Puppet-specific DSL) steeper than YAML for a team's first configuration-management tool. None of those costs are prohibitive individually, but they add up to real, ongoing operational tax that agentless push simply doesn't have, and most teams' actual configuration-management needs don't require what that tax buys.
The decision, concretely
- Starting fresh, no existing investment in Chef or Puppet? Ansible, without much second-guessing. The operational simplicity wins for the overwhelming majority of real workloads, and the ecosystem/hiring pool has shifted decisively toward it.
- Already running a large, mature Puppet or Chef estate with hundreds or thousands of nodes and deep institutional knowledge? The migration cost to Ansible is real and the continuous-drift-correction (Puppet) or Ruby-expressiveness (Chef) benefits you're already getting may genuinely outweigh it. This is a case-by-case call, not a default.
- Need continuous drift correction, beyond provisioning-time configuration? Puppet's pull model does this natively; replicating it with Ansible means adding a scheduling layer yourself.
- This decision sits alongside the broader IaC question of what manages infrastructure versus what configures it; see Ansible vs Terraform for where Ansible fits into that split when a provisioning tool is also in the picture, and Ansible idempotency done right for the habits that make scheduled runs safe.
Questions people ask
Is Chef still used in 2026?
Yes, mostly in estates that adopted it years ago. The docs.chef.io site covers Chef Infra Client 19, including the systemd timer that re-runs the client every 30 minutes by default. New adoption is rare because the Ruby DSL and the Chef Infra Server add operational cost that Ansible avoids. If you already run Chef well, migrating rarely pays back quickly.
Does Ansible need an agent on managed nodes?
No. Ansible runs from a control node and connects to managed nodes over native OpenSSH by default (WinRM for Windows), copies its modules, runs them with the remote Python interpreter, and disconnects. The only requirements on the target are SSH access and Python for most modules. That is the main reason it is cheaper to operate than Chef or Puppet.
Can Ansible correct configuration drift like Puppet?
Only if you schedule it. Puppet's agent re-applies its catalog every runinterval (30 minutes by default), so manual changes get reverted automatically. Ansible runs when someone or something triggers it, so drift correction means a cron job, a CI schedule, or AWX running the playbook on a timer. --check --diff reports drift without changing anything.
The call we'd make
Default to Ansible for new work, specifically because agentless push eliminates a category of ongoing operational cost that agent-based tools carry for capability most teams don't fully use. Keep Puppet or Chef where a large existing investment already exists and the migration cost genuinely outweighs the operational savings, or where continuous drift enforcement (Puppet) is a real, active requirement rather than a nice-to-have.
Sources
Cite this article
Kiril Urbonas (2026). Chef vs Puppet vs Ansible: Configuration Management in 2026. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/chef-vs-puppet-vs-ansible
[Chef vs Puppet vs Ansible: Configuration Management in 2026](https://www.devopsness.com/blog/chef-vs-puppet-vs-ansible) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)
More from DevOps
Explore more articles in this category
Best Practices: Docker Image Hardening for Production
Our base image went from 1.2 GB and 200+ CVEs to 80 MB and 4 CVEs. Most of the work wasn't clever — it was deletion.
Secure Authentication and Session Best Practices
A practical guide to hashing passwords, adding MFA, hardening sessions, and avoiding the JWT mistakes that break production auth.
Argo CD CVE-2026-113708: Read-Only Users Can Run Code on the Repo-Server. Upgrade to 3.4.10+
Three CVSS 9.9 Argo CD repo-server bugs can be reached by anyone with Application get, the permission most teams hand to every viewer. Fixed versions, the v2 and 3.3 support cliff, and the RBAC and config checks to run today.
You might have missed
Evergreen posts worth revisiting.