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.

25 lines
436B

  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]
  8. when 'windows'
  9. ['Salt Minion']
  10. else
  11. %w[salt-master salt-minion]
  12. end
  13. control 'salt packages' do
  14. title 'should be installed'
  15. pkgs.each do |p|
  16. describe package(p) do
  17. it { should be_installed }
  18. its('version') { should match(/^#{input('saltmajorversion')}/) }
  19. end
  20. end
  21. end