From: Simon Pasquier Date: Fri, 4 Nov 2016 10:03:46 +0000 (+0100) Subject: Add collectd support only when the server is enabled X-Git-Tag: 2016.12~5^2~13^2 X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=commitdiff_plain;h=52646a751965b9d8bc996e62e8ee810937ec0e7e Add collectd support only when the server is enabled --- diff --git a/elasticsearch/meta/collectd.yml b/elasticsearch/meta/collectd.yml index 20952d4..9da665f 100644 --- 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 %}