mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-18 21:19:38 +01:00
2881fdd811
% print $OSTYPE;pkg search 'py39-(pygit2|gitpython|dulwich|salt)' freebsd13.0 py39-dulwich-0.19.16 Python implementation of the Git file formats and protocols py39-gitpython-3.1.27 Python Git Library py39-pygit2-1.8.0 Python bindings for libgit2 py39-salt-3004.2 Distributed remote execution and configuration management system
27 lines
477 B
Ruby
27 lines
477 B
Ruby
# frozen_string_literal: true
|
|
|
|
pkgs =
|
|
case system.platform[:name]
|
|
when 'arch'
|
|
%w[salt]
|
|
when /bsd$/
|
|
%w[py39-salt]
|
|
when 'windows'
|
|
['Salt Minion']
|
|
when 'mac_os_x'
|
|
%w[salt saltstack]
|
|
else
|
|
%w[salt-master salt-minion]
|
|
end
|
|
|
|
control 'salt packages' do
|
|
title 'should be installed'
|
|
|
|
pkgs.each do |p|
|
|
describe package(p) do
|
|
it { should be_installed }
|
|
its('version') { should match(/^#{input('saltmajorversion')}/) }
|
|
end
|
|
end
|
|
end
|