Code Review
/
salt-formulas
/
elasticsearch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
637b324
)
Optimize 'noservices' condition
author
Martin Polreich
<polreichmartin@gmail.com>
Thu, 8 Jun 2017 13:16:16 +0000
(15:16 +0200)
committer
Martin Polreich
<polreichmartin@gmail.com>
Thu, 8 Jun 2017 13:16:16 +0000
(15:16 +0200)
elasticsearch/server/init.sls
patch
|
blob
|
history
diff --git
a/elasticsearch/server/init.sls
b/elasticsearch/server/init.sls
index 8b2ec70cee26909daf2159c059565cfa5cda57ad..5206bb6123707a6233e831e625f86bbf59fab82f 100644
(file)
--- a/
elasticsearch/server/init.sls
+++ b/
elasticsearch/server/init.sls
@@
-47,17
+47,16
@@
elasticsearch_logrotate:
- template: jinja
{%- endif %}
-{%- if not grains.get('noservices', False) %}
-
elasticsearch_service:
service.running:
- enable: true
- name: {{ server.service }}
+ {%- if grains.get('noservices') %}
+ - onlyif: /bin/false
+ {%- endif %}
- watch:
- file: elasticsearch_config
- file: elasticsearch_logging
- file: elasticsearch_default
{%- endif %}
-
-{%- endif %}