Fix path for telegraf config file, SC-2522
This commit is contained in:
parent
d1de5d052d
commit
010e5b8457
1 changed files with 4 additions and 4 deletions
|
@ -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'),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue