# Configuration Management

> Using code to keep many servers set up the same way.

**Field:** Software Development  
**Category:** DevOps & Cloud  
**Also known as:** Config Management, Server Configuration Management, CM (DevOps)

## Think of it like

Think of it like a recipe card for setting up a room. Follow it in any room and it ends up the same.

## Definition

Configuration management keeps many servers set up the same way, using code. You write down what each server should have: its packages, files, users and services. A tool then makes each server match. If a server already matches, a second run changes nothing. Ansible, Puppet and Chef are tools for this.

## Example

Emma writes that every web server needs Nginx and a firewall rule. One run sets up all twenty servers the same.

## Why it matters

Servers set up by hand slowly drift apart. Written setup can be read, checked and run again.

## Common mistake

Fixing one server by hand anyway. The next run may undo it, or the change is lost when the server is rebuilt.

## Three principles

- **Written down.** The setup lives in code.
- **Make it match.** The tool fixes differences.
- **Safe to repeat.** A second run changes nothing.

## Related terms

- [Infrastructure as Code (IaC)](https://learn.benibix.com/term/development/infrastructure-as-code)
- [Ansible](https://learn.benibix.com/term/development/ansible)
- [Configuration Drift](https://learn.benibix.com/term/development/configuration-drift)
- [Idempotency](https://learn.benibix.com/term/development/idempotency)
- [GitOps](https://learn.benibix.com/term/development/gitops)

![Two ways to keep servers set up the same. On the left, configuration management with Ansible: a playbook in YAML is pushed over SSH from one control machine to three servers, with no agent on them. On the right, GitOps, lit up: the wanted state lives in a Git repository, and an agent inside the cluster pulls it and keeps fixing any difference it finds.](https://learn.benibix.com/diagrams/dev3-config-mgmt.svg)

---

Source: https://learn.benibix.com/term/development/configuration-management
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
