Skip to content
Snippets Groups Projects
cron.pp 486 B
Newer Older
# Change the time that daily cron jobs run, primarily so that log periods will
# be close to calendar days.
Adam Lewenberg's avatar
Adam Lewenberg committed
#
# Make sure anacron isn't installed.  Otherwise, our cron jobs won't run
# because they will assume anacron is handling cron jobs.  On Red Hat, anacron
# is installed by default even though it isn't used.
Adam Lewenberg's avatar
Adam Lewenberg committed

class base::cron {
  package { 'anacron': ensure => absent }
  file { '/etc/crontab':
    source => "puppet:///modules/base/cron/etc/crontab.${::operatingsystem}";
  }
Adam Lewenberg's avatar
Adam Lewenberg committed
}