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 477B

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