From adc55af3cb7b896ba2ce1f4df130a6a5994f3f5f Mon Sep 17 00:00:00 2001 From: caoyuan Date: Mon, 16 Jul 2018 14:38:37 +0800 Subject: [PATCH] Add elasticsearch port and ps to make the port configurable Change-Id: I919767469087b9579e3d2f0965df835e7b71c327 --- ansible/roles/elasticsearch/templates/elasticsearch.yml.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/elasticsearch/templates/elasticsearch.yml.j2 b/ansible/roles/elasticsearch/templates/elasticsearch.yml.j2 index 2f335da89d..b853914244 100644 --- a/ansible/roles/elasticsearch/templates/elasticsearch.yml.j2 +++ b/ansible/roles/elasticsearch/templates/elasticsearch.yml.j2 @@ -10,6 +10,7 @@ node.data: true discovery.zen.ping.unicast.hosts: [{% for host in groups['elasticsearch'] %}"{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}"{% if not loop.last %},{% endif %}{% endfor %}] discovery.zen.minimum_master_nodes: {{ minimum_master_nodes }} +http.port: {{ elasticsearch_port }} gateway.expected_nodes: {{ num_nodes }} gateway.recover_after_time: "5m" gateway.recover_after_nodes: {{ recover_after_nodes }}