From 2cf1d8b9dc691338d8ef83e22d7325a4495a177a Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Wed, 15 Jun 2022 18:57:25 +0200 Subject: [PATCH] bugfix: service creation with portal is broken - Filebeat autodiscover condition isn't working for all hosts. Switched condition to docker_enabled flag. If a container has no default log file (harbor) there isn't a problem because there will just no log file found. The autodiscover docker container log files mustn't deactivated in this cases at all. --- templates/filebeat/config/filebeat.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/filebeat/config/filebeat.yml.j2 b/templates/filebeat/config/filebeat.yml.j2 index 81182b4..17dae83 100644 --- a/templates/filebeat/config/filebeat.yml.j2 +++ b/templates/filebeat/config/filebeat.yml.j2 @@ -38,7 +38,7 @@ filebeat.inputs: {% endif %} {% endfor %} {% endif %} -{% if ansible_fqdn not in groups['harbor'] %} +{% if docker_enabled | default(true) %} filebeat.autodiscover: providers: