Saltstack Official Salt Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # frozen_string_literal: true
-
- pkgs =
- case system.platform[:name]
- when 'arch'
- %w[salt]
- when /bsd$/
- %w[py38-salt-3002.6]
- when 'windows'
- ['Salt Minion']
- else
- %w[salt-master salt-minion]
- end
-
- control 'salt packages' do
- title 'should be installed'
-
- version = '3001'
-
- pkgs.each do |p|
- describe package(p) do
- it { should be_installed }
- its('version') { should match(/^#{version}/) }
- end
- end
- end
|