Saltstack Official Apache 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.

services_spec.rb 367B

12345678910111213141516171819
  1. # frozen_string_literal: true
  2. control 'apache service' do
  3. impact 0.5
  4. title 'should be running and enabled'
  5. service_name =
  6. case platform[:family]
  7. when 'debian', 'suse'
  8. 'apache2'
  9. when 'redhat', 'fedora', 'linux'
  10. 'httpd'
  11. end
  12. describe service(service_name) do
  13. it { should be_enabled }
  14. it { should_not be_running }
  15. end
  16. end