base: ensure cron is running & enabled

To allow for example logrotate to run every night …

Fixes bug#292
This commit is contained in:
François Charlier 2014-02-24 11:40:50 +01:00
parent 620bb69399
commit b6b60f3c73
2 changed files with 10 additions and 0 deletions

View File

@ -65,4 +65,9 @@ This node is under the control of Puppet ${::puppetversion}.
uid => '0',
}
service { 'cron':
ensure => running,
enable => true
}
}

View File

@ -56,6 +56,11 @@ describe 'cloud' do
)
end
it { shoud contain_service('cron').with({
:ensure => 'running',
:enable => true
}) }
end
context 'on Debian platforms' do