From 52646a751965b9d8bc996e62e8ee810937ec0e7e Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Fri, 4 Nov 2016 11:03:46 +0100 Subject: [PATCH] Add collectd support only when the server is enabled --- elasticsearch/meta/collectd.yml | 2 ++ 1 file changed, 2 insertions(+) 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 %} -- 2.32.7