2020-05-01 09:32:39 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
control 'salt packages' do
|
|
|
|
title 'should be installed'
|
|
|
|
|
2020-12-14 20:56:26 +01:00
|
|
|
version = '3000'
|
2020-05-31 23:59:26 +02:00
|
|
|
|
2020-05-01 09:32:39 +02:00
|
|
|
%w[
|
|
|
|
salt-master
|
|
|
|
salt-minion
|
|
|
|
].each do |p|
|
|
|
|
describe package(p) do
|
|
|
|
it { should be_installed }
|
2020-05-31 23:59:26 +02:00
|
|
|
its('version') { should match(/^#{version}/) }
|
2020-05-01 09:32:39 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|