minion:
- {%- if pillar.elasticsearch.client is defined %}
+ {%- if pillar.get('elasticsearch', {}).get('client') %}
elasticsearch:
- {%- from "elasticsearch/map.jinja" import client with context %}
+ {%- from "elasticsearch/map.jinja" import server with context %}
elasticsearch:
- host: {{client.server.host}}:{{client.server.port}}
+ host: {{ server.bind.address }}:{{ server.bind.port }}
{%- endif %}