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.

26 lines
427B

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