Configuration Management Tools in DevOps: Which Layer Each One Owns
Terraform, Ansible, Puppet, Chef, Salt, Helm and Argo CD all claim to manage configuration. Here is which layer each one should own, and how we combine them without overlap or drift.

Ask five engineers which configuration management tool they use and you will get five answers: Ansible, Terraform, Puppet, Helm, Argo CD. They are all right, and that is the problem. These tools overlap just enough that teams end up with two of them fighting over the same file, or with a layer that nobody manages at all.
We wrote a short tour of the popular tools a while ago. This post is the part that comes after the list: how to decide which tool owns which part of your system, and how to keep them from stepping on each other.
Configuration management is three jobs, not one
Most confusion goes away once you split the work into layers:
| Layer | What it describes | Typical tools |
|---|---|---|
| Infrastructure | Networks, load balancers, databases, clusters, DNS, IAM | Terraform, OpenTofu, Pulumi, CloudFormation |
| Hosts | Packages, users, files, services on a machine | Ansible, Puppet, Chef, Salt |
| Workloads | What runs on the platform and with which settings | Helm, Kustomize, Argo CD, Flux |
Each layer has a different lifecycle. A VPC changes a few times a year, a server’s packages every month, an application’s config several times a day. One tool can stretch across two layers, but it usually does one of them well and the other awkwardly.
The rule we follow: every resource has exactly one owner. If Terraform creates a security group, nothing else edits its rules. If Argo CD syncs a namespace, nobody runs kubectl apply against it by hand.
The differences that actually matter
Feature lists do not help much when choosing. These four questions do.
Declarative or procedural?
Terraform, Puppet and Kubernetes manifests are declarative: you describe the end state and the tool works out the steps. Ansible playbooks read top to bottom as tasks, though most modules are idempotent, so running them twice is safe if you write them carefully. Shell scripts in a pipeline are procedural and usually are not.
Declarative tools are easier to review, because the diff shows the target state. Procedural tools are easier for one-off operations such as a rolling restart or a migration that must happen in a certain order.
Push or pull?
Ansible pushes: a controller connects to hosts over SSH and runs the change now. Puppet and Chef pull by default: an agent on each host checks in on a schedule and corrects itself. Argo CD and Flux pull too, from Git into the cluster.
Push is simple and immediate, and works well for small fleets and for orchestrated steps. Pull scales better and fixes drift on its own, because the agent keeps applying the desired state even when nobody is watching.
Agent or agentless?
Agentless tools like Ansible need only SSH and Python on the target, which makes them easy to start with. Agent-based tools need something installed and kept up to date on every host, in return for continuous enforcement and reporting. Salt supports both models.
Where does the state live?
Terraform and OpenTofu keep a state file that maps your code to real resources. That file needs remote storage, locking and access control, because it can contain sensitive values. GitOps tools treat Git itself as the state and the cluster as something to reconcile against it. Ansible keeps no state at all, which is simpler but means it cannot tell you what it created last time.
A setup that works for most teams
For a team running on a cloud provider with Kubernetes, which is most of our clients, this split holds up well:
- Terraform or OpenTofu for the infrastructure. Accounts, networks, managed databases, the cluster itself, DNS and IAM. Plans run in CI on every pull request and are applied by the pipeline, not from laptops.
- Container images instead of host configuration. Application dependencies go into the image at build time. The nodes stay close to the cloud provider’s defaults, so there is very little host config left to manage.
- Helm or Kustomize for workload manifests, kept in Git per environment.
- Argo CD or Flux to apply them. The cluster pulls from Git, shows drift, and reverts manual changes if you allow it.
- Ansible for what is left over. Bastion hosts, VMs that cannot be containerised yet, on-premises machines, and ordered operations that are awkward to express declaratively.
Teams with large fleets of long-lived servers, on-premises or in regulated environments, often get more from Puppet or Chef, where an agent enforcing the baseline every run is the point. That is a valid choice. What matters is that it is a choice, written down, with clear boundaries.
Drift is the real enemy
The tools are rarely the cause of a bad outage. Drift is. Someone fixes production by hand at night, the fix never makes it back to code, and the next apply quietly undoes it, or worse, fails halfway.
A few habits keep drift small:
- Run the plan on a schedule, not only on change. A nightly
terraform planwith no code change that still shows a diff tells you someone has been editing by hand. - Turn on self-heal where you can. Argo CD and Flux can revert changes made directly in the cluster.
- Make the right path the easy path. If changing config through a pull request takes a day, people will use the console. Fast pipelines reduce drift more than strict policies do.
- Remove write access from humans in production for the layers a tool owns. Read access for everyone, apply through the pipeline.
- Keep secrets out of the config code. Reference them from a secrets manager instead of committing values, even encrypted ones, wherever the tools allow it.
When to change tools, and when not to
Switching configuration management tools is expensive and rarely the fix people hope for. Before migrating, check whether the real issue is ownership: two tools on the same resources, manual changes, or modules nobody understands. Those problems travel with you to the new tool.
Migration does make sense when a layer has disappeared, for example when servers you configured with Chef have become containers, or when a tool no longer fits your licensing or support needs. Move one layer at a time, import existing resources rather than recreating them, and keep the old tool read-only until the new one has run cleanly for a while.
Where to start
If your configuration feels tangled, start with an inventory, not a new tool:
- List every layer you run and write down which tool owns it today.
- Mark the resources that two tools touch, and the ones no tool touches.
- Pick one owner for each, and remove write access from everything else.
- Put the plan or diff for each layer into CI so every change is reviewed.
Good configuration management is less about the tool and more about the boundary between tools. Get the ownership right and almost any of them will serve you well.
DoneDeploy sets up and cleans up configuration management with Terraform, Ansible, Puppet and GitOps tools. If you want a second pair of eyes on your setup, book a free call.


