Automation
Configuration Management
Cheat sheet · https://pcornel.dk/topic.php?topic=5376
Answer
Configuration management defines the desired state of servers and devices in code — Ansible, Puppet, Chef, Salt, DSC — and applies it repeatedly, so systems stay consistent and drift is corrected.
Remember
- Declare the desired state; the tool works out the steps.
- Runs must be idempotent: 'ok' when nothing changes.
- Manual changes become drift.
First checks
ansible-playbook site.yml --check --diff— drift preview- Config repo history — changes
- Compliance report per host — state
Verify in this order
repo (desired) → tool → hosts → report
Where it usually breaks
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5376