Saltstack Official OpenSSH Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
317B

  1. # frozen_string_literal: true
  2. # Overide by Platform
  3. service_name = 'sshd'
  4. service_name = 'ssh' if platform[:family] == 'debian'
  5. control 'openssh service' do
  6. impact 0.5
  7. title 'should be running and enabled'
  8. describe service(service_name) do
  9. it { should be_enabled }
  10. it { should be_running }
  11. end
  12. end