From: Jakub Josef Date: Wed, 27 Dec 2017 17:58:46 +0000 (+0000) Subject: Merge "provide index creation without date-mapping" X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=commitdiff_plain;h=bbc88d9125101e83537ac5a0176a751a08af45f4;hp=22eaeb9cd8b267655330326461fca83d1ae3faea Merge "provide index creation without date-mapping" --- diff --git a/elasticsearch/client/init.sls b/elasticsearch/client/init.sls index c169e97..058f98e 100644 --- a/elasticsearch/client/init.sls +++ b/elasticsearch/client/init.sls @@ -43,8 +43,13 @@ elasticsearch_index_{{ index_name }}_{{ operation }}: module.run: - name: elasticsearch.index_{{ operation }} - index: {{ index_name }}-{{ curdate }} +{%- else %} +elasticsearch_index_{{ index_name }}_{{ operation }}: + module.run: + - name: elasticsearch.index_{{ operation }} + - index: {{ index_name }} {%- endif %} {%- endfor %} -{%- endif %} \ No newline at end of file +{%- endif %}