mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-01 12:51:19 +01:00
22 lines
369 B
Ruby
22 lines
369 B
Ruby
# frozen_string_literal: true
|
|
|
|
services =
|
|
case platform[:family]
|
|
when 'windows'
|
|
%w[salt-minion]
|
|
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
|