ncsa / puppet-profile_update_os

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

SVCPLAN-3522 Use ensure_resource to create /etc/motd.d #22

Closed bsper2 closed 1 year ago

bsper2 commented 1 year ago

Tested on ACHE cluster hn6/hn7

This fixes the issue that initially prompted SVCPLAN-3522, but in addition also fixes an issue if a node wanted to enable both kernel_upgrade.pp and scheduled_reboot.pp, which would cause a similar error where the catalog would fail to compile. It's unlikely a node would use both of those (since kernel_upgrade.pp has it's own scheduling method itself - so you'd end up with two classes telling it to reboot), but if there is ever an edge case where both are needed this will make sure it works.