From: Vnaumov Date: Wed, 20 Dec 2017 12:32:27 +0000 (+0300) Subject: provide index creation without date-mapping X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=commitdiff_plain;h=c107a13cec2d7285d4b4d1dba77d1ca6084b2e09 provide index creation without date-mapping force creating allow to create date-marked indicies its useful by defaul and also provide issues due incorrect es-salt-formula actions see related bug and other refs in this topic bug: https://mirantis.jira.com/browse/PROD-16661 Change-Id: I8ca7d4358b5ac1935989512cd197cec3155662f5 --- 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 %}