telegraf class

This commit is contained in:
Leif Johansson 2020-03-30 16:16:02 +02:00
parent 427dff3e20
commit 99f1eb51a5
No known key found for this signature in database
GPG key ID: D73AD6430AD478D6

View file

@ -11,7 +11,7 @@ class eid::telegraf(String $version = "stable") {
notify => Sunet::Docker_run['telegraf']
}
glob(["/etc/telegraf/telegraf.conf.d/**.conf"]).each |Integer $index, String $file| {
Dir(["/etc/telegraf/telegraf.conf.d/*.conf"]).each |Integer $index, String $file| {
concat::fragment { $file:
target => "/etc/telegraf/telegraf.conf",
source => $file,