local glob isn't as advanced as stdlib glob

This commit is contained in:
Leif Johansson 2020-03-30 16:38:11 +02:00
parent 77ff6d2c82
commit ffaf1fd172
No known key found for this signature in database
GPG key ID: D73AD6430AD478D6

View file

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