OP#470 add dir
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# confdroid_prometheus::params.pp
|
||||
# Module name: confdroid_prometheus
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class holds all parameters for the confdroid_prometheus module.
|
||||
# @param [String] reqpackage_prom the prometheus package
|
||||
# @param [String] reqpackage_ne the node_exporter package
|
||||
@@ -41,6 +41,8 @@
|
||||
# @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 (
|
||||
|
||||
@@ -48,6 +50,7 @@ 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,
|
||||
@@ -112,6 +115,7 @@ class confdroid_prometheus::params (
|
||||
$ps_main_dir = '/etc/prometheus'
|
||||
$ps_system_file_dir = '/etc/systemd/system/prometheus.service.d'
|
||||
$ps_system_dir = '/etc/systemd/system/'
|
||||
$ps_install_dir = '/opt/prometheus'
|
||||
|
||||
# files
|
||||
$ps_main_file = "${ps_main_dir}/prometheus.yml"
|
||||
|
||||
Reference in New Issue
Block a user