Skip to content

Commit 5040368

Browse files
committed
fix: added checksum for prometheus package
1 parent 34898e8 commit 5040368

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

modules/enableit/common/data/architectures/armv7l.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ common::openvox::linuxaid_cli::checksums:
77

88
common::monitor::prometheus::install_method: "url"
99
common::monitor::prometheus::env_file_path: "/etc/default"
10+
common::monitor::prometheus::server::checksums:
11+
3.8.1: 70159946928dce8e11a5d38b6f478b5b6b65533e67c7909644cf613eb59cdf5c
1012

1113
common::logging::manage: false
1214

modules/enableit/common/data/common.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ common::monitor::prometheus::usershell: "/usr/sbin/nologin"
338338

339339
common::monitor::prometheus::server: prometheus.obmondo.com
340340
common::monitor::prometheus::server::version: 3.8.1
341+
common::monitor::prometheus::server::checksums:
342+
3.8.1: a09972ced892cd298e353eb9559f1a90f499da3fb4ff0845be352fc138780ee7
341343
common::monitor::prometheus::server::listen_address: 127.254.254.254:63400
342344
common::monitor::prometheus::server::config_dir: "/etc/prometheus"
343345
common::monitor::prometheus::server::collect_scrape_jobs:

modules/enableit/common/manifests/monitor/prometheus/server.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,13 @@
108108

109109
Monitor::Threshold <<| tag == $::trusted['certname'] |>>
110110
Monitor::Alert <<| tag == $::trusted['certname'] |>>
111+
112+
$_checksum = lookup('common::monitor::exporter::node::checksums')
113+
114+
Archive <| tag == "/tmp/prometheus-${version}.tar.gz" |> {
115+
checksum => $_checksum[$version],
116+
checksum_verify => true,
117+
noop => $noop_value,
118+
}
119+
111120
}

0 commit comments

Comments
 (0)