2025-02-23 14:34:15 +01:00
|
|
|
## cd_alloy::params.pp
|
|
|
|
|
# Module name: cd_alloy
|
|
|
|
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
2025-02-24 13:24:45 +01:00
|
|
|
# @param [string] reqpackages which packages to install
|
|
|
|
|
# @param [string] pkg_ensure 'latest' or 'present'
|
2025-02-24 13:36:57 +01:00
|
|
|
# @param [string] ay_loki_url the url where alloy will send logs to.
|
2025-02-24 13:24:45 +01:00
|
|
|
# @param [string] ay_loki_username the username to logon to loki
|
|
|
|
|
# @param [string] ay_loki_userpass the password to logon to loki
|
2025-02-23 14:34:15 +01:00
|
|
|
# @summary Class contains all parameters for the cd_alloy module.
|
|
|
|
|
##############################################################################
|
|
|
|
|
class cd_alloy::params (
|
|
|
|
|
|
2025-02-24 13:24:45 +01:00
|
|
|
$reqpackages = 'alloy',
|
|
|
|
|
$pkg_ensure = 'latest',
|
|
|
|
|
|
|
|
|
|
# loki
|
2025-02-24 13:35:58 +01:00
|
|
|
$ay_loki_url = 'https://loki.example.net/loki/api/v1/push',
|
2025-02-24 13:24:45 +01:00
|
|
|
$ay_loki_username = '',
|
|
|
|
|
$ay_loki_userpass = '',
|
2025-02-24 14:08:05 +01:00
|
|
|
$ay_log_targets = [
|
|
|
|
|
'/var/log/messages',
|
|
|
|
|
'/var/log/secure',
|
|
|
|
|
],
|
2025-02-23 17:25:46 +01:00
|
|
|
|
2025-02-23 14:34:15 +01:00
|
|
|
) {
|
|
|
|
|
|
2025-02-24 12:02:24 +01:00
|
|
|
# service
|
2025-02-24 13:24:45 +01:00
|
|
|
$ay_service = 'alloy'
|
2025-02-24 12:02:24 +01:00
|
|
|
|
|
|
|
|
# dirs
|
2025-02-24 13:24:45 +01:00
|
|
|
$ay_main_dir = '/etc/alloy'
|
|
|
|
|
|
|
|
|
|
# files
|
2025-02-24 13:59:20 +01:00
|
|
|
$ay_main_file = "${ay_main_dir}/config.alloy"
|
2025-02-24 12:02:24 +01:00
|
|
|
|
|
|
|
|
|
2025-02-23 17:02:27 +01:00
|
|
|
# includes must be last
|
|
|
|
|
include cd_alloy::main::config
|
2025-02-23 14:34:15 +01:00
|
|
|
|
|
|
|
|
}
|