{%- 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
elasticsearch:
match: 'java.*elasticsearch'
{%- endif %}
+{%- endif %}