Automation · Configuration Management
Configuration Management Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=5377
Answer
Configuration management fundamentals: describe the desired state in code, keep it in Git, apply it with a tool that is idempotent, and run it regularly so systems converge and stay consistent.
Remember
- Desired state lives in code under version control.
- The tool applies it idempotently.
- Regular runs keep systems consistent.
First checks
- Tool choice (Ansible, Puppet, Salt, Chef, DSC) — platform
- Code structure (roles/modules) — organisation
- Run cadence — enforcement
Verify in this order
declaration → apply → verify
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Configuration Management → Configuration Management Fundamentals · operational reference
| Layer | Configuration Management → Configuration Management Fundamentals operational reference |
|---|---|
| Runtime/ownership | configuration-management automation concepts · the configuration-management control plane that compares declared intent with managed-node state and invokes modules/providers to converge differences |
| Persistent intent | version-controlled desired state, inventory/target scope, variables, module/provider versions and secrets references |
| Verification | Run a bounded configuration fixture twice against a test target with check/diff mode where supported; inspect first-run change, second-run no-op and independent target state. |
| Expected interpretation | The intended target converges to the reviewed configuration, the second identical run is stable/no-op where appropriate, scope and credentials are bounded, and service state matches the declaration. |
| Recovery boundary | preserve task/host results and pre-state, fix the declaration/provider boundary, rerun only the bounded scope, then independently read managed state and service behavior |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5377