From aedcc9e8d2bfb4363afae946db463e18d97b9d5e Mon Sep 17 00:00:00 2001 From: Patrik Holmqvist Date: Wed, 26 Mar 2025 09:03:55 +0100 Subject: [PATCH] fix telegraf variables in erb conf file, SC-2522 --- .../eid/templates/telegraf2/95-telegraf.conf.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/global/overlay/etc/puppet/modules/eid/templates/telegraf2/95-telegraf.conf.erb b/global/overlay/etc/puppet/modules/eid/templates/telegraf2/95-telegraf.conf.erb index 78e685c8..314cf9b0 100644 --- a/global/overlay/etc/puppet/modules/eid/templates/telegraf2/95-telegraf.conf.erb +++ b/global/overlay/etc/puppet/modules/eid/templates/telegraf2/95-telegraf.conf.erb @@ -1,16 +1,16 @@ [[outputs.influxdb_v2]] urls = ["https://metrics-external-1.sunet.se:8086"] - token = "$INFLUX2_TOKEN" - organization = "$INFLUXDB2_ORG" - bucket = "$INFLUXDB2_BUCKET" + token = <%= @influxdb2_token %> + organization = <%= @influxdb2_org %> + bucket = <%= @influxdb2_bucket %> insecure_skip_verify = true [outputs.influxdb_v2.tagdrop] influxdb_database = ["*"] [[outputs.influxdb_v2]] urls = ["https://metrics-external-1.sunet.se:8086"] - token = "$INFLUX2_TOKEN" - organization = "$INFLUXDB2_ORG" - bucket = "$INFLUXDB2_BUCKET_PROXY" + token = <%= @influxdb2_token %> + organization = <%= @influxdb2_org %> + bucket = <%= @influxdb2_bucket %> insecure_skip_verify = true tagexclude = ["influxdb_database"] [outputs.influxdb_v2.tagpass]