Saltstack Official Salt Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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