Pcornel
Automation · Linux Automation

Patch Automation

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

Back to the Topic

Answer

Linux Patch Automation coordinates package security/maintenance updates with prechecks, maintenance scope, reboot/restart decisions, staged execution and post-patch verification.

Remember

  • Updates available ≠ all updates appropriate now.
  • Patch installed ≠ running process uses patched code.
  • Reboot completed ≠ workload healthy.
  • One-node success ≠ cluster/quorum-safe rollout complete.

First checks

  • unattended-upgrade --dry-run -d — Ubuntu auto updates
  • dnf-automatic / dnf updateinfo — RHEL
  • ansible <group> -m package -a 'name=* state=latest' --check — bulk update preview

Verify in this order

patch window → batches → reboot if needed → verify

Where it usually breaks

Installed patches do not prove patched code is active or the fleet/application remains healthy until runtime and workload checks pass.

Patch Automation automation proof-boundary map

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation summary substitutes for actual runtime behavior

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

Confirmation

Confirm action

Continue?