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

22 行
369B

  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