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.

27 lines
446B

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