OP#470reverse
This commit is contained in:
@@ -46,18 +46,5 @@ class confdroid_prometheus::main::dirs (
|
||||
ensure => absent,
|
||||
}
|
||||
}
|
||||
# binary install directory
|
||||
if $install_from_binary == true {
|
||||
file { $ps_install_dir:
|
||||
ensure => directory,
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0755',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => usr_,
|
||||
seluser => unconfined_u,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,16 +7,10 @@ class confdroid_prometheus::main::install (
|
||||
) inherits confdroid_prometheus::params {
|
||||
require confdroid_prometheus::main::yumrepo
|
||||
if $manage_prometheus == true {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
if $manage_node_exporter == true {
|
||||
package { $reqpackage_ne:
|
||||
ensure => $pkg_ensure,
|
||||
|
||||
@@ -41,8 +41,6 @@
|
||||
# @param [String] ps_min_age_hours Minimum block age in hours before pruning
|
||||
# @param [String] ps_grace_hours Grace period in hours to be extra safe
|
||||
# @param [String] ps_sql_template the SQL template to use for checks.
|
||||
# @param [Boolean] install_from_binary whether to install from binary releases
|
||||
# instead of packages
|
||||
##############################################################################
|
||||
class confdroid_prometheus::params (
|
||||
|
||||
@@ -50,7 +48,6 @@ class confdroid_prometheus::params (
|
||||
String $reqpackage_prom = 'prometheus2',
|
||||
String $reqpackage_ne = 'node_exporter',
|
||||
String $pkg_ensure = 'present',
|
||||
Boolean $install_from_binary = false,
|
||||
|
||||
# config logic
|
||||
Boolean $manage_prometheus = false,
|
||||
|
||||
Reference in New Issue
Block a user