-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.yml
42 lines (34 loc) · 1.1 KB
/
main.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
---
# Mandatory variables
es_cluster_name: ~
# what hoss to connect to in cluster
es_master_nodes: ~
es_master_nodes_and_ports: |
{{ es_master_nodes | json_query("[].join('', [addr,':',to_string(port)])") }}
es_master_nodes_names: |
{{ es_master_nodes | json_query("[].name") }}
es_image: 'docker.elastic.co/elasticsearch/elasticsearch-oss:7.8.0'
es_api_port: 9200
es_node_port: 9300
es_listen_addr: '0.0.0.0'
es_cont_name: elasticsearch
es_docker_dir: '/docker/{{ es_cont_name }}'
es_number_of_replicas: 2
es_number_of_shards: '{{ (es_master_nodes | length) }}'
# Mappings for fields enforced by default template
es_default_template_mappings: {}
es_cont_uid: 1000
es_host_uid: '{{ 100000 + es_cont_uid | int }}'
es_max_map_count: 262144
es_jvm_min_heap: 1g
es_jvm_max_heap: 1g
# Metrics for ElasticSearch
es_metrics_cont_tag: '1.1.0'
es_metrics_cont_image: 'justwatch/elasticsearch_exporter:{{ es_metrics_cont_tag }}'
es_metrics_cont_name: '{{ es_cont_name }}-exp'
es_metrics_cont_port: 9114
es_metrics_timeout: '10s'
# generic container variables
cont_state: started
cont_recreate: false
cont_restart: false