Files
securityonion/salt
Mike Reeves 8b488f9226 soup: make failed upgrades and hotfixes resumable
A failed highstate mid-upgrade left /etc/soversion already advanced to the
target version (the highstate stamps it from the pillar via the soversionfile
state), so a re-run of soup saw INSTALLEDVERSION == NEWVERSION and reported
"already running the latest version", stranding the box with post-upgrade
steps never run.

Introduce /etc/sopostversion, a soup-owned marker (no salt state manages it)
that records post-upgrade walk progress. It is seeded from the pre-upgrade
version before the highstate, advanced after each post_to_* step, and removed
on successful completion. upgrade_check treats a leftover marker as "upgrade
not finished" and resumes the remaining post steps instead of bailing.

Also fix the hotfix path: /etc/sohotfix was written before the hotfix
highstate, so a failed hotfix highstate looked already-applied on re-run.
Since no salt state manages /etc/sohotfix, defer its write (update_version)
until after the highstate succeeds so it is an honest completion marker.
2026-07-14 17:30:58 -04:00
..
2026-07-13 13:05:25 -05:00
2026-06-12 11:18:59 -04:00
2026-07-10 13:50:55 -05:00
2026-05-13 17:28:07 -04:00
2026-06-12 11:18:59 -04:00
2026-05-05 14:26:04 -04:00
2026-06-03 09:49:53 -04:00
2026-05-05 14:26:04 -04:00
2026-06-22 13:01:02 -04:00
2026-07-10 10:32:25 -04:00
2026-07-10 10:35:37 -04:00