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

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