prometheus-formula/test/integration/repo/controls/packages_spec.rb

37 lines
628 B
Ruby
Raw Normal View History

# frozen_string_literal: true
control 'prometheus packages' do
title 'should be installed'
2020-08-24 17:34:56 +02:00
packages =
case platform[:family]
when 'redhat'
%w[
prometheus2
alertmanager
node_exporter
]
when 'linux'
case platform[:name]
when 'arch'
%w[
prometheus
alertmanager
prometheus-node-exporter
]
end
else
2020-08-24 17:34:56 +02:00
%w[
prometheus
prometheus-alertmanager
prometheus-node-exporter
]
end
packages.each do |p|
describe package(p) do
it { should be_installed }
end
end
end