2020-05-14 01:27:23 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-08-21 15:34:29 +02:00
|
|
|
control 'prometheus packages' do
|
2020-05-14 01:27:23 +02:00
|
|
|
title 'should be installed'
|
|
|
|
|
2020-08-24 17:34:56 +02:00
|
|
|
packages =
|
|
|
|
case platform[:family]
|
|
|
|
when 'redhat'
|
|
|
|
%w[
|
|
|
|
prometheus2
|
|
|
|
alertmanager
|
|
|
|
node_exporter
|
|
|
|
]
|
|
|
|
when 'debian'
|
|
|
|
%w[
|
|
|
|
prometheus
|
|
|
|
prometheus-alertmanager
|
|
|
|
prometheus-node-exporter
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2020-08-21 15:34:29 +02:00
|
|
|
packages.each do |p|
|
|
|
|
describe package(p) do
|
|
|
|
it { should be_installed }
|
|
|
|
end
|
2020-05-14 01:27:23 +02:00
|
|
|
end
|
|
|
|
end
|