Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Platform operationsMixed 24 series

Five questions before automating

Automation removes the step where a person notices something is wrong. That is the whole benefit and the whole risk.

Quick reference

  1. Has a person run it by hand twice, with the same result?
  2. What does it change, and can you see that before it does?
  3. Who may run it, and who may stop it halfway through?
  4. What does the system look like when step four of seven fails?
  5. How do you prove it worked without reading the logs?

Explained

Before you automate a runbook, ask whether a person has run it by hand twice, with the same result. If not, you are automating a draft.

Ask what it changes, and whether you can see that before it does. A dry run that prints the target list and the diff is worth more than a fast script.

Ask who may run it and who may stop it halfway. Automation needs an owner and an abort, not just a schedule.

Ask what the system looks like when step four of seven fails. If nobody can describe the half-finished state, the resume will be improvised during an incident.

Ask how you prove it worked without reading the logs. A check that fails loudly beats a log nobody reads.

The honest caveat: some runbooks should stay manual, particularly the ones that run twice a year and change every time, because the automation cost exceeds the risk it removes.

Your turn: Which of your runbooks would fail the first question?

More notes: Platform operations

Open in the notes app: search, filters, copy This note on GitHub