2019-09-16 20:28:05 +02:00
|
|
|
# Overide by Platform
|
2020-02-07 13:49:47 +01:00
|
|
|
package_name =
|
|
|
|
case platform[:family]
|
|
|
|
when 'suse'
|
|
|
|
'openssh'
|
|
|
|
else
|
|
|
|
'openssh-server'
|
|
|
|
end
|
2019-09-16 20:28:05 +02:00
|
|
|
|
|
|
|
control 'openssh package' do
|
|
|
|
title 'should be installed'
|
|
|
|
|
2020-02-07 13:49:47 +01:00
|
|
|
only_if do
|
|
|
|
platform.family != 'bsd'
|
|
|
|
end
|
|
|
|
|
2019-09-16 20:28:05 +02:00
|
|
|
describe package(package_name) do
|
|
|
|
it { should be_installed }
|
|
|
|
end
|
|
|
|
end
|