ded81d8edc
Signed-off-by: Gabriel Filion <lelutin@gmail.com> + more linting by intrigeri. Conflicts: manifests/apticron.pp manifests/cron/dist_upgrade.pp manifests/cron/download.pp manifests/dist_upgrade/initiator.pp manifests/init.pp manifests/listchanges.pp manifests/preferences.pp manifests/preseeded_package.pp manifests/proxy_client.pp manifests/unattended_upgrades.pp manifests/update.pp
20 lines
487 B
Puppet
20 lines
487 B
Puppet
class apt::cron::base {
|
|
|
|
package { 'cron-apt': ensure => installed }
|
|
|
|
case $apt_cron_hours {
|
|
'': {}
|
|
default: {
|
|
# cron-apt defaults to run every night at 4 o'clock
|
|
# so we try not to run at the same time.
|
|
cron { 'apt_cron_every_N_hours':
|
|
command => 'test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt',
|
|
user => root,
|
|
hour => "${apt_cron_hours}",
|
|
minute => 10,
|
|
require => Package['cron-apt'],
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|