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

23 行
377B

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