From d3f3f286b0265d9909bc6d21a6d0f42262445ffb Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Fri, 13 Jun 2025 15:27:42 +0200 Subject: [PATCH] Recommit for updates in build 6 --- doc/file.README.html | 2 +- doc/index.html | 2 +- .../prometheus_cd_3A_3Amain_3A_3Ainstall.html | 22 +++- .../prometheus_cd_3A_3Aparams.html | 118 ++++++++++++++++-- 4 files changed, 134 insertions(+), 10 deletions(-) diff --git a/doc/file.README.html b/doc/file.README.html index e764b9b..19eb6cd 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -68,7 +68,7 @@

Prometheus is an open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.

-

prometheus_cd is a Puppet module to automate installation and configuration of prometheus and node exporter.

+

prometheus_cd is a Puppet module to automate installation and configuration of prometheus and node exporter. This module supports either managing prometheus or node_exporter or both. You need to set the parameters $manage_prometheusand / or $manage_node_exporterto true ( false by default)

WARNING

diff --git a/doc/index.html b/doc/index.html index 6bd83e7..8f24fbf 100644 --- a/doc/index.html +++ b/doc/index.html @@ -68,7 +68,7 @@

Prometheus is an open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.

-

prometheus_cd is a Puppet module to automate installation and configuration of prometheus and node exporter.

+

prometheus_cd is a Puppet module to automate installation and configuration of prometheus and node exporter. This module supports either managing prometheus or node_exporter or both. You need to set the parameters $manage_prometheusand / or $manage_node_exporterto true ( false by default)

WARNING

diff --git a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Ainstall.html index d56c200..eba0f59 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Ainstall.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Ainstall.html @@ -104,7 +104,17 @@ 6 7 8 -9 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19
# File 'manifests/main/install.pp', line 6
@@ -112,6 +122,16 @@
 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,
+    }
+  }
 }
diff --git a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html index 189dc73..3583b47 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html @@ -105,7 +105,101 @@
+

Parameters:

+ +
@@ -115,17 +209,27 @@
 
 
-6
-7
-8
-9
-10
-11
+11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 -
# File 'manifests/params.pp', line 6
+        
# File 'manifests/params.pp', line 11
 
 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