Configuration Management
Cheat sheet · https://pcornel.dk/topic.php?topic=5660
Answer
Linux Configuration Management automates files, directories, permissions, templates and service-coupled settings while preserving desired source, rendered artifact, persistence, consumption and runtime verification.
Remember
- Template rendered ≠ syntax valid.
- File correct on disk ≠ daemon loaded it.
- Daemon reload success ≠ intended behavior changed.
- Configuration convergence ≠ workload acceptance.
First checks
ansible-playbook site.yml --check --diff— drift- Templates for config files — managed config
- Validation before replace (validate: param) — safety
Verify in this order
template → validate → file → handler
Where it usually breaks
Configuration-file convergence does not prove the consuming process accepted or uses the intended semantics.
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Configuration Management automation proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation summary substitutes for actual runtime behavior |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5660