2019-10-12 07:46:19 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-08-27 23:35:25 +02:00
|
|
|
control 'Cron package' do
|
|
|
|
title 'should be installed'
|
|
|
|
|
|
|
|
package_name =
|
|
|
|
case os[:family]
|
|
|
|
when 'debian'
|
|
|
|
'cron'
|
|
|
|
else
|
|
|
|
'cronie'
|
|
|
|
end
|
|
|
|
|
|
|
|
describe package(package_name) do
|
|
|
|
it { should be_installed }
|
|
|
|
end
|
|
|
|
end
|