Code Review
/
salt-formulas
/
elasticsearch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
e661101
)
Merge pull request #6 from simonpasquier/stacklight
author
pasquier-s
<spasquier@mirantis.com>
Wed, 9 Nov 2016 09:53:26 +0000
(10:53 +0100)
committer
GitHub
<noreply@github.com>
Wed, 9 Nov 2016 09:53:26 +0000
(10:53 +0100)
Add collectd support only when the server is enabled
elasticsearch/meta/collectd.yml
patch
|
blob
|
history
diff --git
a/elasticsearch/meta/collectd.yml
b/elasticsearch/meta/collectd.yml
index 20952d4e74359b7791a7d4a05176f0bf40641527..9da665f2ae1f22d3a1e147538268dc417f9134c9 100644
(file)
--- a/
elasticsearch/meta/collectd.yml
+++ b/
elasticsearch/meta/collectd.yml
@@
-1,6
+1,7
@@
{%- if pillar.elasticsearch.server is defined %}
{%- from "elasticsearch/map.jinja" import server with context %}
+{%- if server.get('enabled', False) %}
local_plugin:
elasticsearch_cluster:
plugin: python
@@
-12,3
+13,4
@@
local_plugin:
elasticsearch:
match: 'java.*elasticsearch'
{%- endif %}
+{%- endif %}