Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

service_spec.rb 421B

1234567891011121314151617181920212223
  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