Differentiate telegraf conf depending on server type, SC-2522

This commit is contained in:
Patrik Holmqvist 2025-03-27 13:31:28 +01:00
parent 29d4b1fe4e
commit c5d54d96fb
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -6,14 +6,15 @@
# @param service_dir The directory where all related config and files are stored. (referenced in compose file)
# @param influx_urls List of influxdb urls to send data to
class eid::telegraf2 (
String $version = 'latest',
String $server_fqdn = $facts['networking']['fqdn'],
Array $ports = [],
String $service_dir = '/etc/telegraf',
Array $influx_urls = ["https://metrics-external-1.sunet.se:8086"],
String $influxdb2_org = 'SwedenConnect',
String $influxdb2_bucket = 'eidas',
String $influxdb2_bucket_proxy = 'eidas-proxy',
String $version = 'latest',
String $server_fqdn = $facts['networking']['fqdn'],
Enum['proxy', 'log'] $server_type,
Array $ports = [],
String $service_dir = '/etc/telegraf',
Array $influx_urls = ["https://metrics-external-1.sunet.se:8086"],
String $influxdb2_org = 'SwedenConnect',
String $influxdb2_bucket = 'eidas',
String $influxdb2_bucket_proxy = 'eidas-proxy',
) {
# Get influx password token from eyaml