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

24 line
421B

  1. # frozen_string_literal: true
  2. services =
  3. case system.platform[:family]
  4. when 'bsd'
  5. %w[salt_master salt_minion]
  6. when 'windows'
  7. %w[salt-minion]
  8. else
  9. %w[salt-master salt-minion]
  10. end
  11. control 'salt services' do
  12. title 'should be running'
  13. services.each do |p|
  14. describe service(p) do
  15. it { should be_installed }
  16. it { should be_enabled }
  17. it { should be_running }
  18. end
  19. end
  20. end