Saltstack Official Salt Formula
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

32 lines
678B

  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. when 'darwin'
  9. # The following is expected but isn't yet working in the GitHub Actions
  10. # macOS runners
  11. # %w[com.saltstack.salt.api
  12. # com.saltstack.salt.master
  13. # com.saltstack.salt.minion
  14. # com.saltstack.salt.syndic]
  15. []
  16. else
  17. %w[salt-master salt-minion]
  18. end
  19. control 'salt services' do
  20. title 'should be running'
  21. services.each do |p|
  22. describe service(p) do
  23. it { should be_installed }
  24. it { should be_enabled }
  25. it { should be_running }
  26. end
  27. end
  28. end