2025-12-13 13:25:01 +01:00
|
|
|
# confdroid_prometheus::main::install.pp
|
|
|
|
|
# Module name: confdroid_prometheus
|
2026-02-27 15:18:08 +01:00
|
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
2025-12-13 13:25:01 +01:00
|
|
|
# @summary Class install binaries for the confdroid_prometheus module.
|
2025-06-13 14:48:19 +02:00
|
|
|
##############################################################################
|
2025-12-13 13:25:01 +01:00
|
|
|
class confdroid_prometheus::main::install (
|
|
|
|
|
) inherits confdroid_prometheus::params {
|
|
|
|
|
require confdroid_prometheus::main::yumrepo
|
2025-06-13 15:26:50 +02:00
|
|
|
if $manage_prometheus == true {
|
2026-02-27 15:18:08 +01:00
|
|
|
if $install_from_binary == false {
|
|
|
|
|
package { $reqpackage_prom:
|
|
|
|
|
ensure => $pkg_ensure,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if $install_from_binary == true {
|
|
|
|
|
# place function here to install from binary releases, e.g. using the archive module
|
2025-06-13 15:26:50 +02:00
|
|
|
}
|
|
|
|
|
}
|
2026-02-27 15:18:08 +01:00
|
|
|
|
2025-06-13 15:26:50 +02:00
|
|
|
if $manage_node_exporter == true {
|
|
|
|
|
package { $reqpackage_ne:
|
|
|
|
|
ensure => $pkg_ensure,
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-13 14:48:19 +02:00
|
|
|
}
|