Telegraf will use the environment files mounted as Docker Secrets. Previously, since InfluxDBv1 does not support reading secrets within the container via files, the environment variables were separated in a influxdbv1.env. These env vars are now required for telegraf service to access the database.
Remove generation of influxdbv1.env file by refactoring:
[x] remove the templates/config/influxdbv1/influxdbv1.env.j2 Jinja Template file
[x] place the above template file's content in komponist.env.j2
[x] remove the env_file parameter in the templates/services/docker-compose.influxdbv1.yml.j2
[x] add same env vars in the environment section for interpolation via .env
Description
Telegraf will use the environment files mounted as Docker Secrets. Previously, since InfluxDBv1 does not support reading secrets within the container via files, the environment variables were separated in a
influxdbv1.env
. These env vars are now required fortelegraf
service to access the database.Remove generation of
influxdbv1.env
file by refactoring:templates/config/influxdbv1/influxdbv1.env.j2
Jinja Template filekomponist.env.j2
env_file
parameter in thetemplates/services/docker-compose.influxdbv1.yml.j2
environment
section for interpolation via.env
tests
for InfluxDBv1 files