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