-
Notifications
You must be signed in to change notification settings - Fork 1
/
elastic.yml
71 lines (71 loc) · 2.33 KB
/
elastic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
- hosts: masters
roles:
- role: elastic.elasticsearch
vars:
es_heap_size: "{{ es_master_heap_size }}"
es_data_dirs:
- "{{ es_data_dir | join('') }}/elasticsearch"
es_config:
cluster.name: "{{ es_cluster_name }}"
network.host: 0
cluster.initial_master_nodes: "{{ groups['masters'] | list }}"
discovery.seed_hosts: "{{ groups['masters'][0] }}"
http.port: 9200
node.data: true
node.master: true
node.ingest: true
node.ml: true
cluster.remote.connect: false
bootstrap.memory_lock: true
es_api_basic_auth_username: "{{ elastic_superuser }}"
es_api_basic_auth_password: "{{ elastic_bootstrappass }}"
es_enable_http_ssl: true
es_enable_transport_ssl: true
es_ssl_keystore: "{{ es_common_p12_path }}"
es_ssl_truststore: "{{ es_common_p12_path }}"
- hosts: data
roles:
- role: elastic.elasticsearch
vars:
es_data_dirs:
- "{{ es_data_dir | join('') }}/elasticsearch"
es_heap_size: "{{ es_data_heap_size }}"
es_config:
cluster.name: "{{ es_cluster_name }}"
network.host: 0
discovery.seed_hosts: "{{ groups['masters'][0] }}"
http.port: 9200
node.data: true
node.master: false
node.ml: false
bootstrap.memory_lock: true
indices.recovery.max_bytes_per_sec: 100mb
es_api_basic_auth_username: "{{ elastic_superuser }}"
es_api_basic_auth_password: "{{ elastic_bootstrappass }}"
es_enable_http_ssl: true
es_enable_transport_ssl: true
es_ssl_keystore: "{{ es_common_p12_path }}"
es_ssl_truststore: "{{ es_common_p12_path }}"
- hosts: coordinating
roles:
- role: elastic.elasticsearch
vars:
es_heap_size: "{{ es_coord_heap_size }}"
es_data_dirs:
- "{{ es_data_dir | join('') }}/elasticsearch"
es_config:
cluster.name: "{{ es_cluster_name }}"
network.host: 0
discovery.seed_hosts: "{{ groups['masters'][0] }}"
http.port: 9200
node.data: false
node.master: false
node.ingest: false
node.ml: false
bootstrap.memory_lock: true
es_api_basic_auth_username: "{{ elastic_superuser }}"
es_api_basic_auth_password: "{{ elastic_bootstrappass }}"
es_enable_http_ssl: true
es_enable_transport_ssl: true
es_ssl_keystore: "{{ es_common_p12_path }}"
es_ssl_truststore: "{{ es_common_p12_path }}"