mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-11-28 07:48:17 +01:00
2cfb5a74f3
* test/integration/default/controls/services_spec.rb: favor modifier if usage when having a single-line body. * test/integration/default/controls/config_spec.rb: add frozen string literal comment. * test/integration/default/controls/packages_spec.rb: ditoo. * test/integration/default/controls/services_spec.rb: ditoo.
23 lines
342 B
Ruby
23 lines
342 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Overide by Platform
|
|
package_name =
|
|
case platform[:family]
|
|
when 'suse'
|
|
'openssh'
|
|
else
|
|
'openssh-server'
|
|
end
|
|
|
|
control 'openssh package' do
|
|
title 'should be installed'
|
|
|
|
only_if do
|
|
platform.family != 'bsd'
|
|
end
|
|
|
|
describe package(package_name) do
|
|
it { should be_installed }
|
|
end
|
|
end
|