Commit a74211fa authored by Darren Patterson's avatar Darren Patterson
Browse files

fix cron issues on RHEL

parent b1d3e1fa
release/003.021 (2014-03-11)
Fix cron issues on RHEL. (darrenp1)
release/003.020 (2014-03-05)
Remove class that used lsdb-dev for dev Puppet CA (should have been
......
......@@ -4,7 +4,34 @@
class base::cron {
package { 'anacron': ensure => absent }
if ($::operatingsystem =~ /^(Debian|Ubuntu)$/) {
$crond = 'cron'
}
elsif ($::operatingsystem =~ /^(CentOS|RedHat)$/) {
$crond = 'crond'
if ($::lsbmajdistrelease == '6') {
package {
'cronie-noanacron': ensure => present;
'cronie-anacron': ensure => absent;
}
}
file { [ '/etc/cron.d/dailyjobs', '/etc/cron.d/0hourly' ]:
ensure => absent
}
}
else {
fail "Unknown operatingsystem in base::cron: ${::operatingsystem}"
}
service { $crond:
ensure => running,
enable => true,
}
file { '/etc/crontab':
content => template('base/cron/crontab.erb'),
notify => Service[$crond],
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment