Skip to content

Feat/schedule reboot#281

Open
NavidSassan wants to merge 10 commits into
mainfrom
feat/schedule-reboot
Open

Feat/schedule reboot#281
NavidSassan wants to merge 10 commits into
mainfrom
feat/schedule-reboot

Conversation

@NavidSassan

Copy link
Copy Markdown
Member

No description provided.

…of mailx

The role shelled out to the mailx 'mail' command, which fails on hosts that no longer install mailx (e.g. system_update.yml after dropping the at/mailx deps). Switch to sendmail (provided by postfix), drop the mailx-only platform vars files, and use set -o pipefail + bash for the pipe.
…ext-run notice

notify-and-schedule, update-and-reboot and security-update log progress to the journal. The security lane now checks for pending updates first and exits quietly when there are none, so it no longer mails daily 'nothing to do'. notify-and-schedule reports the actual next run of update-and-reboot.timer in the subject and body; the config-file-stub mail elides over-long paths in the subject; and send_msg takes subject/body as arguments instead of reading globals.
…nd clearer reboot mail

do-reboot waits schedule_reboot__reboot_grace_period seconds (default 60) after notifying before rebooting, so the mail can leave the queue; the reboot subject becomes 'Automatic reboot due to <reasons>'; and send_msg takes subject/body as arguments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant