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.

29 lines
473B

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