fix params
This commit is contained in:
@@ -9,26 +9,26 @@
|
||||
# @param [boolean] ay_manage_loki whether to manage log forwarding to loki
|
||||
# @param [boolean] ay_manage_prom whether to manage metric forwarding
|
||||
# @param [string] ay_prom_url the url where alloy will send metrics
|
||||
# @param [array] ay_log_targets the logging targets
|
||||
# @summary Class contains all parameters for the cd_alloy module.
|
||||
##############################################################################
|
||||
class cd_alloy::params (
|
||||
|
||||
$reqpackages = 'alloy',
|
||||
$pkg_ensure = 'latest',
|
||||
String $reqpackages = 'alloy',
|
||||
String $pkg_ensure = 'latest',
|
||||
|
||||
# loki
|
||||
$ay_manage_loki = true,
|
||||
$ay_loki_url = 'https://loki.example.net/loki/api/v1/push',
|
||||
$ay_loki_username = '',
|
||||
$ay_loki_userpass = '',
|
||||
$ay_log_targets = ['/var/log/messages','/var/log/secure',],
|
||||
String $ay_manage_loki = true,
|
||||
String $ay_loki_url = 'https://loki.example.net/loki/api/v1/push',
|
||||
String $ay_loki_username = 'loki_user',
|
||||
String $ay_loki_userpass = 'loki_pass',
|
||||
Array $ay_log_targets = ['/var/log/messages','/var/log/secure',],
|
||||
|
||||
# prometheus
|
||||
$ay_manage_prom = true,
|
||||
$ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||
Boolean $ay_manage_prom = true,
|
||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||
|
||||
) {
|
||||
|
||||
# service
|
||||
$ay_service = 'alloy'
|
||||
|
||||
@@ -38,8 +38,6 @@ $ay_main_dir = '/etc/alloy'
|
||||
# files
|
||||
$ay_main_file = "${ay_main_dir}/config.alloy"
|
||||
|
||||
|
||||
# includes must be last
|
||||
include cd_alloy::main::config
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user