add files control - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
# @param [String] ps_prom_host the fqdn of the prometheus server
|
||||
# @param [String] ps_fw_prefix the firewall rule prefix
|
||||
# @param [String] ps_main_port the firewall main port for prometheus
|
||||
# @param [String] ps_auth_user the username for authentication
|
||||
# @param [String] ps_auth_user the password for authentication
|
||||
##############################################################################
|
||||
class prometheus_cd::params (
|
||||
|
||||
@@ -29,6 +31,10 @@ class prometheus_cd::params (
|
||||
String $ps_fw_prefix = '50',
|
||||
String $ps_main_port = '9090',
|
||||
|
||||
# auth
|
||||
String $ps_auth_user = 'changeme',
|
||||
String $ps_auth_pass = 'changeme',
|
||||
|
||||
) {
|
||||
# defaults
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
@@ -39,6 +45,11 @@ class prometheus_cd::params (
|
||||
# dirs
|
||||
$ps_main_dir = '/etc/prometheus'
|
||||
|
||||
# files
|
||||
|
||||
# services
|
||||
$ps_prom_service = 'prometheus'
|
||||
$ps_ne_service = 'node_exporter'
|
||||
# includes must be last
|
||||
include prometheus_cd::main::config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user