Saltstack Official Salt Formula
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

pkgs_spec.rb 800B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # frozen_string_literal: true
  2. # Prepare platform "finger"
  3. platform_finger = "#{platform[:name]}-#{platform[:release].split('.')[0]}"
  4. version =
  5. case platform[:family]
  6. when 'debian'
  7. '3000.3+ds-1'
  8. when 'redhat'
  9. case platform_finger
  10. when 'centos-8'
  11. '3000.3-1.el8'
  12. when 'centos-7'
  13. '3000.3-1.el7'
  14. when 'amazon-2'
  15. '3000.3-1.amzn2'
  16. end
  17. when 'fedora'
  18. # Issue in the upstream repo, should be `3000.3`
  19. '3000.2-1.fc31'
  20. when 'suse'
  21. # Issue in the upstream repo, should be `3000.3`
  22. '2019.2.0-lp151.37.1'
  23. end
  24. control 'salt packages' do
  25. title 'should be installed'
  26. %w[
  27. salt-master
  28. salt-minion
  29. ].each do |p|
  30. describe package(p) do
  31. it { should be_installed }
  32. its('version') { should eq version }
  33. end
  34. end
  35. end