yum_cron and fine-tune the timing

asked 2017-09-16 07:00:40 -0600

h.safe gravatar image

updated 2017-09-16 07:07:30 -0600

Hi there I have recently used the module yum_cron to automate the updating of my servers all Centos7 in an open source puppet 4.10 env. If you are familiar with the package you may know that in the recent release for Cen7 the days_of_week parameter is missing and not configurable.

While so what I would like to achieve is that either make yum-cron run at early hours of days or the least on weekends when the servers are least-loaded. I know that I can use cron tab alternatively to achieve this but would like to know if anyone else is facing the same issue and if there is a work around using the native module.

My current config is defaulted to use /etc/yum/yum-cron.conf which is on daily basis without any finer granulation on the days or hours that it runs. Appreciate any help or suggestion

edit retag flag offensive close merge delete


Well, you can restrict resources from being applied but during a specific time frame https://docs.puppet.com/puppet/latest/types/schedule.html#schedule-description .

Kai Burghardt gravatar imageKai Burghardt ( 2017-09-16 07:42:23 -0600 )edit

Hi Kai, But the yum-cron nature is an app that runs as a service and once pushed by the manifest to the clients gets all configs and settings ...basically a one time push ...now the default conf being daily without no further granulation is my problem...all because the day_of_week directive missed out

h.safe gravatar imageh.safe ( 2017-09-16 23:34:48 -0600 )edit