Concepts / Automation and APIs

Automation and APIs

Configuration drift

Also called drift, baseline, golden config, dry run, check mode, --check --diff

A device's running config moving away from its intended one, usually through changes made by hand.

Drift is the line that is not in the files
Drift is the line that is not in the files

A change typed on one device makes it differ from the record. A dry run compares the two and shows the extra line without touching the device.

Configuration drift is a device's running config moving away from its intended one, usually by a change typed by hand. With the intended config in files, a dry run (Ansible's --check --diff) shows the difference and changes nothing; a normal run puts the device back. A check only sees what it compares, so read what the device runs. Comparing with a baseline on a schedule is drift detection.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab