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.

pkgs_spec.rb 438B

1234567891011121314151617181920212223242526
  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. version = '3002'
  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