Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
375B

  1. # frozen_string_literal: true
  2. pkgs =
  3. case platform[:family]
  4. when 'windows'
  5. %w[Salt\ Minion]
  6. else
  7. %w[salt-master salt-minion]
  8. end
  9. control 'salt packages' do
  10. title 'should be installed'
  11. version = '3000'
  12. pkgs.each do |p|
  13. describe package(p) do
  14. it { should be_installed }
  15. its('version') { should match(/^#{version}/) }
  16. end
  17. end
  18. end