Pcornel
Automation · Drift Management

Configuration Drift

Cheat sheet · https://pcornel.dk/topic.php?topic=6005

Back to the Topic

Answer

Configuration drift is the gradual divergence of systems from their intended configuration through manual fixes, ad hoc changes and partial runs, leading to inconsistent and fragile environments.

Remember

  • Manual fixes and partial runs cause drift.
  • Drift makes environments fragile.
  • Detect and correct regularly.

First checks

  • Drift examples (manual edits, hotfixes, other tools) — causes
  • ansible-playbook site.yml --check --diff — detect
  • Change audit logs — who

Commands

git diff --exit-code <baseline-ref> -- <managed-path>
Read-only/validation observation for the exact managed-path delta relative to an approved Git baseline reference.

Verify in this order

declared config → compared with actual → difference = drift

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.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6005

Confirmation

Confirm action

Continue?