Closed ewdurbin closed 1 year ago
You may be able to use the ini file state: https://docs.saltproject.io/en/latest/ref/states/all/salt.states.ini_manage.html#salt.states.ini_manage.options_present to edit the value without creating a full template.
confirmed fixed in #294
Our hourly logrotate cron job is not working on Ubuntu 20.04
https://github.com/python/psf-salt/blob/d6c01b1241f402a6e202cc988b5aa5abf090c96a/salt/cdn-logs/init.sls#L17-L19
This is due to logrotate preferring the systemd timer (see first
if
clause below):We should update our configuration to change the systemd timer from daily to hourly on this host for logrotate.
Timer is currently configured as follows by default on installation of logrotate:
I'm not positive what the best way to go about editing the timer is, but it may be as "simple" as overriding the file with salt and calling
systemctl daemon-reload
as we do for services.References: