Code Review
/
salt-formulas
/
elasticsearch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
provide index creation without date-mapping
[salt-formulas/elasticsearch.git]
/
elasticsearch
/
client
/
init.sls
diff --git
a/elasticsearch/client/init.sls
b/elasticsearch/client/init.sls
index c169e97f51f228b1be3c34d1a1bf2c310e34e91b..058f98e0c6455639ff3e0e3793965e9e362d2736 100644
(file)
--- 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 }}
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 %}
{%- endfor %}
-{%- endif %}
\ No newline at end of file
+{%- endif %}