2020-07-17 16:31:46 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-09-16 20:28:05 +02:00
|
|
|
# Overide by Platform
|
2020-02-07 13:49:47 +01:00
|
|
|
package_name =
|
|
|
|
case platform[:family]
|
2020-07-20 16:28:28 +02:00
|
|
|
# `linux` here is sufficient for `arch`
|
|
|
|
when 'suse', 'linux'
|
2020-02-07 13:49:47 +01:00
|
|
|
'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
|