44 lines
1.5 KiB
ObjectPascal
44 lines
1.5 KiB
ObjectPascal
## alloy_cd::params.pp
|
|
# Module name: alloy_cd
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
|
# @param [String] reqpackages which packages to install
|
|
# @param [String] pkg_ensure 'latest' or 'present'
|
|
# @param [String] ay_loki_url the url where alloy will send logs to.
|
|
# @param [String] ay_loki_username the username to logon to loki
|
|
# @param [String] ay_loki_userpass the password to logon to loki
|
|
# @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 alloy_cd module.
|
|
##############################################################################
|
|
class alloy_cd::params (
|
|
|
|
String $reqpackages = 'alloy',
|
|
String $pkg_ensure = 'latest',
|
|
|
|
# loki
|
|
Boolean $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
|
|
Boolean $ay_manage_prom = true,
|
|
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
|
|
|
) {
|
|
# service
|
|
$ay_service = 'alloy'
|
|
|
|
# dirs
|
|
$ay_main_dir = '/etc/alloy'
|
|
|
|
# files
|
|
$ay_main_file = "${ay_main_dir}/config.alloy"
|
|
|
|
# includes must be last
|
|
include alloy_cd::main::config
|
|
}
|