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.

24 line
379B

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