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 @@
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 %}