Saltstack Official Salt Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

pkgs_spec.rb 810B

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. '2019.2.5+ds-1'
  8. when 'redhat'
  9. case platform_finger
  10. when 'centos-8'
  11. '2019.2.5-1.el8'
  12. when 'centos-7'
  13. '2019.2.5-1.el7'
  14. when 'amazon-2'
  15. '2019.2.5-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 `2019.2.5`
  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