Update docs in telegraf class, SC-2522

This commit is contained in:
Patrik Holmqvist 2025-03-27 13:36:12 +01:00
parent c5d54d96fb
commit 5045e9793d
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -1,10 +1,14 @@
# This puppet manifest is used to configure Telegraf for Sweden Connect
# @param version Version of the docker image to use. (referenced in compose file)
# @param server_fqdn The FQDN of the server. (referenced in compose file)
# @param ports Port mappings for container
# @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 version Version of the docker image to use. (referenced in compose file)
# @param server_fqdn The FQDN of the server. (referenced in compose file)
# @param server_type Type of server, used in compose for config differentiation
# @param ports Port mappings for container
# @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 influxdb2_org Influx organization (referenced in compose file)
# @param influxdb2_bucket Influx bucket name (referenced in compose file)
# @param influxdb2_bucket_proxy Influx bucket name (referenced in compose file)
class eid::telegraf2 (
String $version = 'latest',
String $server_fqdn = $facts['networking']['fqdn'],
@ -29,6 +33,7 @@ class eid::telegraf2 (
description => 'telegraf'
}
# Create the influx config file
file { "${service_dir}/telegraf.conf":
ensure => file,
owner => 'root',