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.

25 lines
496B

  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. describe package('salt-master') do
  14. it { should be_installed }
  15. its('version') { should eq version }
  16. end
  17. describe package('salt-minion') do
  18. it { should be_installed }
  19. its('version') { should eq version }
  20. end
  21. end