mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-01 04:11:17 +01:00
23 lines
375 B
Ruby
23 lines
375 B
Ruby
# frozen_string_literal: true
|
|
|
|
pkgs =
|
|
case platform[:family]
|
|
when 'windows'
|
|
%w[Salt\ Minion]
|
|
else
|
|
%w[salt-master salt-minion]
|
|
end
|
|
|
|
control 'salt packages' do
|
|
title 'should be installed'
|
|
|
|
version = '3000'
|
|
|
|
pkgs.each do |p|
|
|
describe package(p) do
|
|
it { should be_installed }
|
|
its('version') { should match(/^#{version}/) }
|
|
end
|
|
end
|
|
end
|