-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.yml
More file actions
130 lines (115 loc) · 4.76 KB
/
main.yml
File metadata and controls
130 lines (115 loc) · 4.76 KB
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
---
## General
# Tar as default or 'deb' for install as deb package
install_mode: tar
# You can see default version in vars/{{ install_mode }}.yml
elasticsearch_version: "{{ __elasticsearch_version }}"
elasticsearch_major_version: "{{ __elasticsearch_major_version }}"
## Deb
# State of elasticsearch deb package
elasticsearch_package_state: "{{ __elasticsearch_package_state }}"
elasticsearch_gpg_key: "{{ __elasticsearch_gpg_key }}"
elasticsearch_ppa_source: "{{ __elasticsearch_ppa_source }}"
elasticsearch_required_libs: "{{ elasticsearch_required_libs_extended | default([]) + __elasticsearch_required_libs }}"
## Tar
# Platform available: linux-x86_64, darwin-x86_64, darwin-aarch64, linux-aarch64
elasticsearch_platform: "{{ __elasticsearch_platform }}"
# Folder where find templates to configure elasticsearch.yml jvm.options and log4j2.properties files
elasticsearch_config_templates_files: "{{ __elasticsearch_config_templates_files }}"
# Force to reinstall elasticsearch even if is same version installed
elasticsearch_force_reinstall: false
# Systemd service config
elasticsearch_max_open_files: 65536
elasticsearch_max_threads: 8192
# Operating system tuning. See:
# https://www.elastic.co/guide/en/elasticsearch/reference/master/system-config.html
#
elasticsearch_os_tuning: true
elasticsearch_sysctl_params:
- name: vm.max_map_count
value: 262144
- name: vm.swappiness
value: 1
#
# Example for network-intensive use cases
# elasticsearch_sysctl_params:
# - name: net.core.rmem_max
# value: 16777216
# - name: net.core.wmem_max
# value: 16777216
# - name: net.core.somaxconn
# value: 4096
# - name: net.core.netdev_max_backlog
# value: 16384
# - name: net.ipv4.tcp_max_syn_backlog
# value: 8192
# - name: net.ipv4.tcp_syncookies
# value: 1
# - name: net.ipv4.tcp_tw_recycle
# value: 1
# - name: net.ipv4.tcp_rmem
# value: "4096 87380 16777216"
# - name: net.ipv4.tcp_wmem
# value: "4096 87380 16777216"
# - name: net.ipv4.tcp_congestion_control
# value: cubic
# - name: vm.max_map_count
# value: 262144
# - name: vm.swappiness
# value: 1
# Here you can set bootstrap.memory_lock to true if you need it and all config parameters for elasticsearch.yml
elasticsearch_config: {}
# Owner
elasticsearch_user: elasticsearch
elasticsearch_group: elasticsearch
# elasticsearch_uid: 990
# elasticsearch_gid: 990
## Service
# Start on boot
elasticsearch_service_enabled: "{{ __elasticsearch_service_enabled }}"
# Current state: started, stopped
elasticsearch_service_state: "{{ __elasticsearch_service_state }}"
elasticsearch_private_tmp: false
# If you want to apply any extra config to elasticsearch.service
elasticsearch_service_config_path: /etc/systemd/system/elasticsearch.service.d
# If you want to apply environment variables for example to set JAVA_HOME if not set use elastic bundled jdk
# For debian 10 you can set PrivateTmp too
# You can see examples in any molecule scenario of this repo
# elasticsearch_service_dropin_template: "{{ playbook_dir }}/templates/elasticsearch/service.conf"
# Files & Paths
elasticsearch_home: "{{ __elasticsearch_home }}"
elasticsearch_conf_dir: "{{ __elasticsearch_conf_dir }}"
elasticsearch_log_dir: "{{ __elasticsearch_log_dir }}"
elasticsearch_data_dir: "{{ __elasticsearch_data_dir }}"
elasticsearch_runtime_dir: elasticsearch
elasticsearch_pid_dir: "/run/{{ elasticsearch_runtime_dir }}"
# Hosts & ports
elasticsearch_api_host: localhost
elasticsearch_api_port: 9200
elasticsearch_tcp_port: 9300
# Plugins
# Based on https://docs.ansible.com/ansible/2.8/modules/elasticsearch_plugin_module.html#elasticsearch-plugin-module
# Define all plugins that you want to install the syntax follows as
# elasticsearch_plugins:
# - name: mapper-size
# state: present
# # Where binary of elasticsearch-plugin is to install plugins
# plugin_bin: "{{ elasticsearch_home }}/bin/elasticsearch-plugin" # Optional
# # Where plugins are saved
# plugin_dir: "{{ elasticsearch_home }}/plugins" # Optional
# # Version of plugin, default to elasticsearch_version
# version: "{{ item.version | default (elasticsearch_version) }}" # Optional
# # Proxy host to use during plugin installation
# proxy_host: "{{ item.proxy_host | default(omit) }}" # Optional
# # Proxy port to use during plugin installation
# proxy_port: "{{ item.proxy_port | default(omit) }}" # Optional
# # Optionally set the source location to retrieve the plugin from. This can be a file:// URL to install from a local
# # file, or a remote URL. If this is not set, the plugin location is just based on the name.
# src: "{{ item.src | default(omit) }}" # Optional
# # Force to install
# force: "{{ item.force | default(omit) }}" # Optional
#
#
elasticsearch_plugins: []
# JVM custom parameters
elasticsearch_jvm_custom_parameters: ''