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.

33 lines
552B

  1. # frozen_string_literal: true
  2. version =
  3. case platform[:family]
  4. when 'redhat'
  5. case platform[:name]
  6. when 'amazon'
  7. '2019.2.0-1.el7'
  8. when 'centos'
  9. '2019.2.0-2.el7'
  10. end
  11. when 'fedora'
  12. '2019.2.0-1.fc30'
  13. when 'suse'
  14. '2019.2.0-lp151.5.3.1'
  15. when 'debian'
  16. '2019.2.0+ds-1'
  17. end
  18. control 'salt packages' do
  19. title 'should be installed'
  20. %w[
  21. salt-master
  22. salt-minion
  23. ].each do |p|
  24. describe package(p) do
  25. it { should be_installed }
  26. its('version') { should eq version }
  27. end
  28. end
  29. end