File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
roles/elasticsearch/templates Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 298
298
backend: "{{ db_activation_backend | default('CouchDB') }}"
299
299
elasticsearch:
300
300
protocol: "{{ elastic_protocol | default('http') }}"
301
- port: 9200
301
+ port: "{{ elastic_port | default( 9200) }}"
302
302
index_pattern: "{{ elastic_index_pattern | default('openwhisk-%s') }}"
303
- base_transport_port: 9300
303
+ base_transport_port: "{{ elastic_transport_port_base | default( 9300) }}"
304
304
confdir: "{{ config_root_dir }}/elasticsearch"
305
305
dir:
306
306
become: "{{ elastic_dir_become | default(false) }}"
@@ -343,7 +343,7 @@ elasticsearch:
343
343
344
344
elasticsearch_connect_string: "{% set ret = [] %}\
345
345
{% for host in groups['elasticsearch'] %}\
346
- {{ ret.append( hostvars[host].ansible_host + ':' + ((db.elasticsearch.port+loop.index-1)|string) ) }}\
346
+ {{ ret.append( hostvars[host].ansible_host + ':' + ((db.elasticsearch.port|int +loop.index-1)|string) ) }}\
347
347
{% endfor %}\
348
348
{{ ret | join(',') }}"
349
349
mongodb:
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ transport.tcp.port: {{ transport_port }}
11
11
# Details: https://github.com/elastic/elasticsearch/pull/17282
12
12
discovery.zen.ping.unicast.hosts:
13
13
{% for es in groups ['elasticsearch' ] %}
14
- - {{ hostvars[es] .ansible_host }}:{{ db.elasticsearch.base_transport_port + host_group.index(es)|int }}
14
+ - {{ hostvars[es] .ansible_host }}:{{ db.elasticsearch.base_transport_port|int + host_group.index(es)|int }}
15
15
{% endfor %}
16
16
discovery.zen.minimum_master_nodes: {{ (host_group|length / 2 + 1) | int}}
17
17
You can’t perform that action at this time.
0 commit comments