ncsa / puppet-profile_update_os

NCSA Common Puppet Profiles - configure functionality for upgrading OS packages
0 stars 0 forks source link

Add scheduled reboots #13

Closed bsper2 closed 2 years ago

bsper2 commented 2 years ago

Ngale and mForge and I'm sure others will need the option to schedule vanilla reboots that don't trigger updates. I've setup a new scheduled_reboot class that can handle that.

Implemented it as an additional class instead of expanding kernel_upgrade.pp since there could be a use case where we want to use both at once, like have a node reboot every Monday but also do a full update the first Monday of the month.

billglick commented 2 years ago

@bsper2 I was just thinking last week that we should add this. Perfect.

Can you also address https://github.com/ncsa/puppet-profile_update_os/issues/14 as part of this? Basically we just need to swap all calls to wall with wall -n to avoid TTY issues when run from CRON.

bsper2 commented 2 years ago

Can you also address #14 as part of this? Basically we just need to swap all calls to wall with wall -n to avoid TTY issues when run from CRON.

Sounds good, added the -n option to all the wall commands.