-
Notifications
You must be signed in to change notification settings - Fork 0
/
elastic.yml
135 lines (125 loc) · 5.74 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
- 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
xpack.security.enabled: false
xpack.monitoring.enabled: true
searchguard.enterprise_modules_enabled: false
searchguard.ssl.transport.pemcert_filepath: "{{ sg_transport_pemfile }}"
searchguard.ssl.transport.pemkey_filepath: "{{ sg_transport_keyfile }}"
searchguard.ssl.transport.pemkey_password: "{{ sg_transport_keypass }}"
searchguard.ssl.transport.pemtrustedcas_filepath: "{{ sg_trusted_cas_transport }}"
searchguard.ssl.transport.enforce_hostname_verification: "{{ sg_ssl_ver }}"
searchguard.ssl.transport.resolve_hostname: "{{ sg_ssl_ver }}"
searchguard.ssl.http.enabled: "{{ sg_http_enabled }}"
searchguard.ssl.http.pemcert_filepath: "{{ sg_http_pemfile }}"
searchguard.ssl.http.pemkey_filepath: "{{ sg_http_keyfile }}"
searchguard.ssl.http.pemkey_password: "{{ sg_http_keypass }}"
searchguard.ssl.http.pemtrustedcas_filepath: "{{ sg_trusted_cas_http }}"
searchguard.authcz.admin_dn:
- "{{ sg_admin_dn }}"
searchguard.cert.oid: 1.2.3.4.5.5
searchguard.enable_snapshot_restore_privilege: true
searchguard.check_snapshot_restore_write_privileges: true
searchguard.restapi.roles_enabled: ["SGS_ALL_ACCESS"]
searchguard.nodes_dn:
- "CN=instance.example.in,OU=Ops,O=example\\, tech pvt. ltd.,DC=example,DC=in"
es_plugins:
- plugin: "file:///home/ec2-user/search-guard-suite-plugin-7.10.1-48.0.0.zip"
- 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
searchguard.enterprise_modules_enabled: false
xpack.security.enabled: false
xpack.monitoring.enabled: true
searchguard.ssl.transport.pemcert_filepath: "{{ sg_transport_pemfile }}"
searchguard.ssl.transport.pemkey_filepath: "{{ sg_transport_keyfile }}"
searchguard.ssl.transport.pemkey_password: "{{ sg_transport_keypass }}"
searchguard.ssl.transport.pemtrustedcas_filepath: "{{ sg_trusted_cas_transport }}"
searchguard.ssl.transport.enforce_hostname_verification: "{{ sg_ssl_ver }}"
searchguard.ssl.transport.resolve_hostname: "{{ sg_ssl_ver }}"
searchguard.ssl.http.enabled: "{{ sg_http_enabled }}"
searchguard.ssl.http.pemcert_filepath: "{{ sg_http_pemfile }}"
searchguard.ssl.http.pemkey_filepath: "{{ sg_http_keyfile }}"
searchguard.ssl.http.pemkey_password: "{{ sg_http_keypass }}"
searchguard.ssl.http.pemtrustedcas_filepath: "{{ sg_trusted_cas_http }}"
searchguard.authcz.admin_dn:
- "{{ sg_admin_dn }}"
searchguard.cert.oid: 1.2.3.4.5.5
searchguard.enable_snapshot_restore_privilege: true
searchguard.check_snapshot_restore_write_privileges: true
searchguard.restapi.roles_enabled: ["sg_all_access"]
searchguard.nodes_dn:
- "CN=instance.example.in,OU=Ops,O=example\\, tech pvt. ltd.,DC=example,DC=in"
es_plugins:
- plugin: "file:///home/ec2-user/search-guard-suite-plugin-7.10.1-48.0.0.zip"
- 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
searchguard.enterprise_modules_enabled: false
xpack.security.enabled: false
xpack.monitoring.enabled: true
searchguard.ssl.transport.pemcert_filepath: "{{ sg_transport_pemfile }}"
searchguard.ssl.transport.pemkey_filepath: "{{ sg_transport_keyfile }}"
searchguard.ssl.transport.pemkey_password: "{{ sg_transport_keypass }}"
searchguard.ssl.transport.pemtrustedcas_filepath: "{{ sg_trusted_cas_transport }}"
searchguard.ssl.transport.enforce_hostname_verification: "{{ sg_ssl_ver }}"
searchguard.ssl.transport.resolve_hostname: "{{ sg_ssl_ver }}"
searchguard.ssl.http.enabled: "{{ sg_http_enabled }}"
searchguard.ssl.http.pemcert_filepath: "{{ sg_http_pemfile }}"
searchguard.ssl.http.pemkey_filepath: "{{ sg_http_keyfile }}"
searchguard.ssl.http.pemkey_password: "{{ sg_http_keypass }}"
searchguard.ssl.http.pemtrustedcas_filepath: "{{ sg_trusted_cas_http }}"
searchguard.authcz.admin_dn:
- "{{ sg_admin_dn }}"
searchguard.cert.oid: 1.2.3.4.5.5
searchguard.enable_snapshot_restore_privilege: true
searchguard.check_snapshot_restore_write_privileges: true
searchguard.restapi.roles_enabled: ["sg_all_access"]
searchguard.nodes_dn:
- "CN=instance.example.in,OU=Ops,O=example\\, tech pvt. ltd.,DC=example,DC=in"
es_plugins:
- plugin: "file:///home/ec2-user/search-guard-suite-plugin-7.10.1-48.0.0.zip"