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.

service_spec.rb 369B

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