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 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 # @param influx_urls List of influxdb urls to send data to
class eid::telegraf2 ( class eid::telegraf2 (
String $version = 'latest', String $version = 'latest',
String $server_fqdn = $facts['networking']['fqdn'], String $server_fqdn = $facts['networking']['fqdn'],
Array $ports = [], Enum['proxy', 'log'] $server_type,
String $service_dir = '/etc/telegraf', Array $ports = [],
Array $influx_urls = ["https://metrics-external-1.sunet.se:8086"], String $service_dir = '/etc/telegraf',
String $influxdb2_org = 'SwedenConnect', Array $influx_urls = ["https://metrics-external-1.sunet.se:8086"],
String $influxdb2_bucket = 'eidas', String $influxdb2_org = 'SwedenConnect',
String $influxdb2_bucket_proxy = 'eidas-proxy', String $influxdb2_bucket = 'eidas',
String $influxdb2_bucket_proxy = 'eidas-proxy',
) { ) {
# Get influx password token from eyaml # Get influx password token from eyaml