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

1234567891011121314151617181920212223242526272829303132333435
  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-7'
  11. '2019.2.5-1.el7'
  12. when 'centos-6'
  13. '2019.2.5-1.el6'
  14. when 'amazon-2'
  15. '2019.2.5-1.amzn2'
  16. when 'amazon-2018'
  17. '2019.2.5-1.amzn1'
  18. end
  19. end
  20. control 'salt packages' do
  21. title 'should be installed'
  22. %w[
  23. salt-master
  24. salt-minion
  25. ].each do |p|
  26. describe package(p) do
  27. it { should be_installed }
  28. its('version') { should eq version }
  29. end
  30. end
  31. end