mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2024-12-03 03:48:35 +01:00
16 lines
292 B
Ruby
16 lines
292 B
Ruby
|
# Overide by Platform
|
||
|
service_name = 'sshd'
|
||
|
if platform[:family] == 'debian'
|
||
|
service_name = 'ssh'
|
||
|
end
|
||
|
|
||
|
control 'openssh service' do
|
||
|
impact 0.5
|
||
|
title 'should be running and enabled'
|
||
|
|
||
|
describe service(service_name) do
|
||
|
it { should be_enabled }
|
||
|
it { should be_running }
|
||
|
end
|
||
|
end
|