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 458B

123456789101112131415161718192021222324252627
  1. # frozen_string_literal: true
  2. version =
  3. case platform[:family]
  4. when 'redhat'
  5. '2019.2.1-1.el7'
  6. when 'fedora'
  7. '2019.2.0-1.fc30'
  8. when 'suse'
  9. '2019.2.0-lp151.5.3.1'
  10. when 'debian'
  11. '2019.2.1+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