prometheus-formula/test/integration/repo/controls/packages_spec.rb
2020-08-21 10:34:29 -03:00

27 lines
417 B
Ruby

# frozen_string_literal: true
case platform[:family]
when 'redhat'
packages = %w[
prometheus2
alertmanager
node_exporter
]
when 'debian'
packages = %w[
prometheus
prometheus-alertmanager
prometheus-node-exporter
]
end
control 'prometheus packages' do
title 'should be installed'
packages.each do |p|
describe package(p) do
it { should be_installed }
end
end
end