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
Add a possibility to deploy Elasticsearch 5.x version
[salt-formulas/elasticsearch.git]
/
elasticsearch
/
client
/
init.sls
diff --git
a/elasticsearch/client/init.sls
b/elasticsearch/client/init.sls
index c9500260c636a1cd32d3af0cc7bbc3eba9b81f55..c169e97f51f228b1be3c34d1a1bf2c310e34e91b 100644
(file)
--- a/
elasticsearch/client/init.sls
+++ b/
elasticsearch/client/init.sls
@@
-39,9
+39,10
@@
elasticsearch_index_{{ index_name }}:
{%- if index.get('force_operation', False) %}
elasticsearch_index_{{ index_name }}_{{ operation }}:
{%- if index.get('force_operation', False) %}
elasticsearch_index_{{ index_name }}_{{ operation }}:
+ {% set curdate = None | strftime('%Y.%m.%d') %}
module.run:
- name: elasticsearch.index_{{ operation }}
module.run:
- name: elasticsearch.index_{{ operation }}
- - index: {{ index_name }}
+ - index: {{ index_name }}
-{{ curdate }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}