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.
|
- # frozen_string_literal: true
-
- services =
- case system.platform[:family]
- when 'bsd'
- %w[salt_master salt_minion]
- when 'windows'
- %w[salt-minion]
- when 'darwin'
- # The following is expected but isn't yet working in the GitHub Actions
- # macOS runners
- # %w[com.saltstack.salt.api
- # com.saltstack.salt.master
- # com.saltstack.salt.minion
- # com.saltstack.salt.syndic]
- []
- else
- %w[salt-master salt-minion]
- end
-
- control 'salt services' do
- title 'should be running'
-
- services.each do |p|
- describe service(p) do
- it { should be_installed }
- it { should be_enabled }
- it { should be_running }
- end
- end
- end
|