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 ES https support for telegraf
[salt-formulas/elasticsearch.git]
/
elasticsearch
/
init.sls
diff --git
a/elasticsearch/init.sls
b/elasticsearch/init.sls
index fadf2bf4cec9ea792375959a80cb9dfe35671488..d6078be946dfd1a7e12ed169ce359598a488317f 100644
(file)
--- a/
elasticsearch/init.sls
+++ b/
elasticsearch/init.sls
@@
-1,5
+1,10
@@
-{%
if pillar.elasticsearch.server
is defined %}
+{%
- if pillar.elasticsearch
is defined %}
include:
include:
+{%- if pillar.elasticsearch.server is defined %}
- elasticsearch.server
- elasticsearch.server
-{% endif %}
+{%- endif %}
+{%- if pillar.elasticsearch.client is defined %}
+- elasticsearch.client
+{%- endif %}
+{%- endif %}