Pcornel
Automation · Configuration Management

Drift

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

Back to the Topic

Answer

Drift is when a system's actual configuration no longer matches the managed definition, usually because of manual changes, failed runs or other tools changing the same settings.

Remember

  • Drift is the difference between managed definition and reality.
  • Manual changes and failed runs cause it.
  • Decide whether the system or the code is right.

First checks

  • ansible-playbook site.yml --check --diff | grep -c changed — drift count
  • aide --check — file drift
  • Last manual login/change audit — causes

Verify in this order

desired vs actual → 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=5379

Confirmation

Confirm action

Continue?