Fix path for telegraf config file, SC-2522

This commit is contained in:
Patrik Holmqvist 2025-03-27 08:55:34 +01:00
parent d1de5d052d
commit 010e5b8457
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -16,8 +16,8 @@ class eid::telegraf2 (
# Get influx values # Get influx values
$influxdb2_token = hiera(influxdb2_token,'NOT_SET_IN_HIERA') $influxdb2_token = hiera(influxdb2_token,'NOT_SET_IN_HIERA')
$influx2_token = hiera(influx2_token,'NOT_SET_IN_HIERA') $influx2_token = hiera(influx2_token,'NOT_SET_IN_HIERA')
$influxdb2_org = hiera(influxdb2_org,'NOT_SET_IN_HIERA') # $influxdb2_org = hiera(influxdb2_org,'NOT_SET_IN_HIERA')
$influxdb2_bucket = hiera(influxdb2_bucket,'NOT_SET_IN_HIERA') # $influxdb2_bucket = hiera(influxdb2_bucket,'NOT_SET_IN_HIERA')
$influxdb2_bucket_proxy = hiera(influxdb2_bucket_proxy,'NOT_SET_IN_HIERA') $influxdb2_bucket_proxy = hiera(influxdb2_bucket_proxy,'NOT_SET_IN_HIERA')
sunet::docker_compose { 'telegraf': sunet::docker_compose { 'telegraf':
@ -55,11 +55,11 @@ class eid::telegraf2 (
# } # }
#} #}
file { "${service_dir}/telegraf.conf.d/telegraf.conf": file { "${service_dir}/telegraf.conf":
ensure => file, ensure => file,
owner => 'root', owner => 'root',
group => 'root', group => 'root',
path => "${service_dir}/telegraf.conf.d/telegraf.conf", path => "${service_dir}/telegraf.conf",
mode => '0644', mode => '0644',
content => template('eid/telegraf2/telegraf.conf.erb'), content => template('eid/telegraf2/telegraf.conf.erb'),
} }