2021-03-31 10:10:43 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Prepare platform "finger"
|
|
|
|
platform_finger = system.platform[:finger].split('.').first.to_s
|
|
|
|
|
2021-03-31 10:10:44 +02:00
|
|
|
control 'unbound.package.install' do
|
2021-03-31 10:10:43 +02:00
|
|
|
title 'The required package should be installed'
|
|
|
|
|
|
|
|
# Overide by `platform_finger`
|
|
|
|
package_name =
|
|
|
|
case platform_finger
|
|
|
|
when 'centos-6', 'amazonlinux-1'
|
|
|
|
'cronie'
|
|
|
|
else
|
|
|
|
'bash'
|
|
|
|
end
|
|
|
|
|
|
|
|
describe package(package_name) do
|
|
|
|
it { should be_installed }
|
|
|
|
end
|
|
|
|
end
|