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

1234567891011121314151617181920212223242526
  1. # frozen_string_literal: true
  2. pkgs =
  3. case system.platform[:name]
  4. when 'arch'
  5. %w[salt]
  6. when /bsd$/
  7. %w[py38-salt]
  8. when 'windows'
  9. ['Salt Minion']
  10. else
  11. %w[salt-master salt-minion]
  12. end
  13. control 'salt packages' do
  14. title 'should be installed'
  15. version = '3003'
  16. pkgs.each do |p|
  17. describe package(p) do
  18. it { should be_installed }
  19. its('version') { should match(/^#{version}/) }
  20. end
  21. end
  22. end