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.

pkgs_spec.rb 442B

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