Automation · Automation Fundamentals
Configuration Management
Cheat sheet · https://pcornel.dk/topic.php?topic=5162
Answer
Configuration Management maintains defined configuration and package/service state on existing managed systems, usually by comparing expected settings with observed state and correcting drift.
Remember
- Configuration management ≠ provisioning; it normally assumes the managed resource already exists.
- Configuration file changed ≠ service state changed correctly; reload/restart and runtime validation are separate boundaries.
- Template rendered ≠ correct configuration; variables, defaults and platform semantics determine the effective result.
- Agentless/agent-based transport choice ≠ configuration model; both can implement stateful management.
First checks
ansible-playbook site.yml --check --diff— config drift- Config baseline in git — desired config
- Compliance report — state per host
Verify in this order
desired config → tool → hosts → drift report
Where it usually breaks
Configuration management can prove managed settings were applied or converged; it does not prove the dependent service or end-to-end workload is healthy without runtime verification.
Configuration Management automation boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / inputs | Owner, scope and authoritative inputs are explicit and versioned where applicable | Hidden defaults, stale inventory or competing sources of truth |
| Decision / execution | Plan or decision is explainable and actions are bounded per target | Blind fan-out, implicit assumptions or success based only on executor status |
| State / verification | Target is re-observed and acceptance criteria prove the intended outcome | No read-back, perpetual drift, partial side effects or unresolved exceptions |
| Recovery / evidence | Retry, rollback or escalation behavior is defined and auditable | Unknown partial completion, unsafe retry or evidence lost during remediation |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5162