2020-07-17 16:31:46 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-09-16 20:28:05 +02:00
|
|
|
# Overide by Platform
|
|
|
|
service_name = 'sshd'
|
2020-07-17 16:31:46 +02:00
|
|
|
service_name = 'ssh' if platform[:family] == 'debian'
|
2019-09-16 20:28:05 +02:00
|
|
|
|
|
|
|
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
|