Skip to content

Commit

Permalink
Update elasticsearch configs (elastic#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
liza-mae authored Dec 18, 2018
1 parent 04a5017 commit 3183215
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ansible/roles/elasticsearch/tasks/linux/elasticsearch_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@
block:
- name: Set network host
set_fact:
internal_elasticsearch_config_params: "network.host: {{ current_host_ip }}"
internal_elasticsearch_config_params: |
network.host: {{ current_host_ip }} |
discovery.type: single-node
- name: Set discovery zen parameters
set_fact:
internal_elasticsearch_config_params: '{{ internal_elasticsearch_config_params }} |
combine("discovery.zen.ping.unicast.hosts: {{ host_ip_list }}") |
combine("discovery.zen.minimum_master_nodes: {{ nodes_in_cluster }}")'
internal_elasticsearch_config_params: |
{{ internal_elasticsearch_config_params }} |
combine("discovery.zen.ping.unicast.hosts: {{ host_ip_list }}") |
combine("discovery.zen.minimum_master_nodes: {{ nodes_in_cluster }}")
when: nodes_in_cluster|int > 1
- name: Add elasticsearch configuration parameters
blockinfile:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
insertafter: EOF
content: |
network.host: {{ current_host_ip }}
discovery.type: single-node
xpack.security.enabled: true
xpack.license.self_generated.type: trial
xpack.security.http.ssl.enabled: true
Expand Down

0 comments on commit 3183215

Please sign in to comment.