From c107a13cec2d7285d4b4d1dba77d1ca6084b2e09 Mon Sep 17 00:00:00 2001 From: Vnaumov Date: Wed, 20 Dec 2017 15:32:27 +0300 Subject: [PATCH] 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 --- elasticsearch/client/init.sls | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 %} -- 2.32.7