Allow using custom publish host

Change-Id: I232bca0854e2a7cd19304bc1301dff73e15c9bda
This commit is contained in:
Mohammed Naser 2018-09-02 17:16:36 -04:00
parent 1c56b7f034
commit b1ffb5e36c

@ -47,6 +47,9 @@ bootstrap.memory_lock: false
#
# Set the bind address to a specific IP (IPv4 or IPv6):
network.host: ["127.0.0.1", "{{ ansible_host }}", "{{ ansible_hostname }}"]
{% if elasticsearch_publish_host is defined %}
network.publish_host: "{{ elasticsearch_publish_host }}"
{% endif %}
# Set a custom port for HTTP:
http.port: {{ elastic_port }}