Add transport hostname

This commit is contained in:
Mike Reeves
2020-08-10 22:56:15 -04:00
parent c3d8c599cc
commit 52cc56bebb
2 changed files with 4 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ discovery.zen.minimum_master_nodes: 1
# This is a test -- if this is here, then the volume is mounted correctly.
path.logs: /var/log/elasticsearch
action.destructive_requires_name: true
transport.bind_host: 0.0.0.0
transport.bind_host: {{ grains.host }}
transport.publish_host: {{ NODEIP }}
transport.publish_port: 9300
cluster.routing.allocation.disk.threshold_enabled: true
@@ -25,7 +25,7 @@ cluster.routing.allocation.disk.watermark.high: 98%
cluster.routing.allocation.disk.watermark.flood_stage: 98%
{%- if FEATURES is sameas true %}
xpack.security.enabled: false
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.enabled: false
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.key: /usr/share/elasticsearch/config/elasticsearch.key
xpack.security.http.ssl.certificate: /usr/share/elasticsearch/config/elasticsearch.crt

View File

@@ -172,6 +172,8 @@ so-elasticsearch:
- hostname: elasticsearch
- name: so-elasticsearch
- user: elasticsearch
- extra_hosts:
- {{ grains.host }}
- environment:
- discovery.type=single-node
#- bootstrap.memory_lock=true