3
0

add installation and update Readme

This commit is contained in:
Arne Teuke
2025-06-13 15:26:50 +02:00
parent c830889e8e
commit 51104edd2c
4 changed files with 22 additions and 0 deletions

View File

@@ -6,4 +6,14 @@
class prometheus_cd::main::install (
) inherits prometheus_cd::params {
require prometheus_cd::main::yumrepo
if $manage_prometheus == true {
package { $reqpackage_prom:
ensure => $pkg_ensure,
}
}
if $manage_node_exporter == true {
package { $reqpackage_ne:
ensure => $pkg_ensure,
}
}
}

View File

@@ -2,8 +2,18 @@
# Module name: prometheus_cd
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class holds all parameters for the prometheus_cd module.
# @param [String] reqpackage_prom the prometheus package
# @param [String] reqpackage_ne the node_exporter package
# @param [String] pkg_ensure which version of the package to install
# @param [boolean] manage_prometheus whether to manage prometheus
# @param [boolean] manage_node_exporter whether to manage node exporter
##############################################################################
class prometheus_cd::params (
String $reqpackage_prom = 'prometheus',
String $reqpackage_ne = 'node_exporter',
String $pkg_ensure = 'present',
Boolean $manage_prometheus = false,
Boolean $manage_node_exporter = false,
) {
# includes must be last