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.

23 lines
392B

  1. case os[:name]
  2. when 'centos'
  3. version = '2018.3.4-1.el7'
  4. when 'debian', 'ubuntu'
  5. version = '2018.3.4+ds-1'
  6. when 'fedora'
  7. version = '2018.3.2-5.fc29'
  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