Code Review
/
salt-formulas
/
influxdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add support for influxdb-relay
[salt-formulas/influxdb.git]
/
influxdb
/
init.sls
diff --git
a/influxdb/init.sls
b/influxdb/init.sls
index 9d0eeb9176c0104ea13f95977efc9f6504b0bee8..95c77310a5c33661b97867565e061657e3abf18b 100644
(file)
--- a/
influxdb/init.sls
+++ b/
influxdb/init.sls
@@
-1,4
+1,12
@@
-{%
if pillar.influxdb.server
is defined %}
+{%
- if pillar.influxdb
is defined %}
include:
include:
+{%- if pillar.influxdb.server is defined %}
- influxdb.server
- influxdb.server
-{% endif %}
+{%- endif %}
+{%- if pillar.influxdb.client is defined %}
+- influxdb.client
+{%- endif %}
+{%- if pillar.influxdb.relay is defined %}
+- influxdb.relay
+{%- endif %}
+{%- endif %}