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.

123456789101112131415161718192021222324
  1. case os[:name]
  2. when 'centos'
  3. version = '2018.3.4-1.el6'
  4. when 'debian', 'ubuntu'
  5. version = '2018.3.4+ds-1'
  6. when 'opensuse'
  7. version = '2018.3.0-42.1'
  8. when 'fedora'
  9. version = '2018.3.0-1.fc28'
  10. end
  11. control 'salt packages' do
  12. title 'should be installed'
  13. %w(
  14. salt-master
  15. salt-minion
  16. ).each do |p|
  17. describe package(p) do
  18. it { should be_installed }
  19. its('version') { should eq version }
  20. end
  21. end
  22. end