From c61a52cc5eb4c80790a34057a519ce5748ea52fd Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Thu, 16 Jul 2020 15:05:54 -0400 Subject: [PATCH] fix the container watch for logstash container state --- salt/logstash/init.sls | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/logstash/init.sls b/salt/logstash/init.sls index 60e0967c3..61d6aecc1 100644 --- a/salt/logstash/init.sls +++ b/salt/logstash/init.sls @@ -37,6 +37,7 @@ {% set PIPELINES = salt['pillar.get']('logstash:pipelines', {}) %} {% set DOCKER_OPTIONS = salt['pillar.get']('logstash:docker_options', {}) %} +{% set TEMPLATES = salt['pillar.get']('elasticsearch:templates', {}) %} include: - elasticsearch @@ -181,4 +182,6 @@ so-logstash: - file: ls_pipeline_{{PL}}_{{CONFIGFILE.split('.')[0] | replace("/","_") }} {% endfor %} {% endfor %} - - file: /opt/so/conf/elasticsearch/templates/* \ No newline at end of file +{% for TEMPLATE in TEMPLATES %} + - file: es_template_{{TEMPLATE.split('.')[0] | replace("/","_") }} +{% endfor %} \ No newline at end of file