Class | rhel::yum-cron |
In: |
/modules/rhel/manifests/yum-cron.pp
|
Parent: |
Define: rhel::yum-cron
Daily yum update run from cron.
Parameters:
$ensure: Whether yum-cron should be 'present' or 'absent'. Defaults to 'present'. $script_source: Puppet source to use for the /usr/local/sbin/yum-cron script. Default: "puppet:///modules/${module_name}/yum-cron" $cron_command: The command to be executed from cron. Default: '/usr/local/sbin/yum-cron' $cron_user, $cron_hour, $cron_minute, $cron_weekday, $cron_environment: Cron job parameters. Default is to run as root at 10h05 AM Mon-Fri.
Sample Usage :
include yum-cron class { 'yum-cron': script_source => 'puppet:///mymodule/yum-cron-modified', cron_hour => '06', cron_minute => '00', cron_weekday => '1', # Remember that this can potentially affect other jobs... cron_environment => [ 'MAILTO=root@example.com' ], }