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.

40 lines
810B

  1. # frozen_string_literal: true
  2. # Prepare platform "finger"
  3. platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
  4. version =
  5. case platform[:family]
  6. when 'debian'
  7. '2019.2.5+ds-1'
  8. when 'redhat'
  9. case platform_finger
  10. when 'centos-8'
  11. '2019.2.5-1.el8'
  12. when 'centos-7'
  13. '2019.2.5-1.el7'
  14. when 'amazon-2'
  15. '2019.2.5-1.amzn2'
  16. end
  17. when 'fedora'
  18. # Issue in the upstream repo, should be `3000.3`
  19. '3000.2-1.fc31'
  20. when 'suse'
  21. # Issue in the upstream repo, should be `2019.2.5`
  22. '2019.2.0-lp151.37.1'
  23. end
  24. control 'salt packages' do
  25. title 'should be installed'
  26. %w[
  27. salt-master
  28. salt-minion
  29. ].each do |p|
  30. describe package(p) do
  31. it { should be_installed }
  32. its('version') { should eq version }
  33. end
  34. end
  35. end