Automation · Linux Automation
Patch Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5661
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 updatesdnf-automatic / dnf updateinfo— RHELansible <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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation 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