Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132
  1. # frozen_string_literal: true
  2. version =
  3. case platform[:family]
  4. when 'redhat'
  5. case platform[:name]
  6. when 'amazon'
  7. '2019.2.0-1.el7'
  8. when 'centos'
  9. '2019.2.1-1.el7'
  10. end
  11. when 'fedora'
  12. '2019.2.0-1.fc30'
  13. when 'suse'
  14. '2019.2.0-lp151.5.3.1'
  15. when 'debian'
  16. '2019.2.1+ds-1'
  17. end
  18. control 'salt packages' do
  19. title 'should be installed'
  20. %w[
  21. salt-master
  22. salt-minion
  23. ].each do |p|
  24. describe package(p) do
  25. it { should be_installed }
  26. its('version') { should eq version }
  27. end
  28. end
  29. end