- add support for elasticsearch 7.x - remove support for elasticsearch 5.x - update kitchen-ansible configuration (install ansible and jmespath dependencies using os repositories) - replace geoip plugin in tests as this one is now embeded in elasticsearch since 6.7.0 (cf. https://www.elastic.co/guide/en/elasticsearch/plugins/6.7/ingest-geoip.html) - update discovery configuration for 7.x (in ES 7.x, discovery.zen.ping.unicast.hosts is replaced by discovery.seed_hosts and transport.tcp.port is replaced by transport.port, also discovery.seed_hosts is disabled on master nodes to avoid "master_not_discovered_exception" error when creating templates in the same play) - update index template structure for 7.x - update security realms settings for 7.x (cf. https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#include-realm-type-in-setting)
47 lines
1.6 KiB
YAML
47 lines
1.6 KiB
YAML
---
|
|
es_version: "7.0.1"
|
|
es_use_snapshot_release: false
|
|
es_enable_xpack: true
|
|
es_package_name: "elasticsearch"
|
|
es_version_lock: false
|
|
es_use_repository: true
|
|
es_templates_fileglob: "files/templates-{{ es_major_version }}/*.json"
|
|
es_repo_base: "https://artifacts.elastic.co"
|
|
es_apt_key: "{{ es_repo_base }}/GPG-KEY-elasticsearch"
|
|
es_apt_url: "deb {{ es_repo_base }}/packages/{{ es_repo_name }}/apt stable main"
|
|
es_apt_url_old: "deb http://packages.elastic.co/elasticsearch/{{ es_repo_name }}/debian stable main"
|
|
es_start_service: true
|
|
es_java_install: true
|
|
update_java: false
|
|
es_restart_on_change: true
|
|
es_plugins_reinstall: false
|
|
es_scripts: false
|
|
es_templates: false
|
|
es_user: elasticsearch
|
|
es_group: elasticsearch
|
|
es_config: {}
|
|
es_config_log4j2: log4j2.properties.j2
|
|
#Need to provide default directories
|
|
es_pid_dir: "/var/run/elasticsearch"
|
|
es_data_dirs: "/var/lib/elasticsearch"
|
|
es_log_dir: "/var/log/elasticsearch"
|
|
es_action_auto_create_index: true
|
|
es_max_open_files: 65536
|
|
es_max_threads: "{{ 2048 if ( es_version is version_compare('6.0.0', '<')) else 8192 }}"
|
|
es_max_map_count: 262144
|
|
es_allow_downgrades: false
|
|
es_xpack_features: ["alerting","monitoring","graph","ml","security"]
|
|
#These are used for internal operations performed by ansible.
|
|
#They do not affect the current configuration
|
|
es_api_host: "localhost"
|
|
es_api_port: 9200
|
|
es_debian_startup_timeout: 10
|
|
|
|
# Since ansible 2.2 the following variables need to be defined
|
|
# to allow the role to be conditionally played with a when condition.
|
|
pid_dir: ''
|
|
log_dir: ''
|
|
conf_dir: ''
|
|
data_dirs: ''
|
|
# JVM custom parameters
|
|
es_jvm_custom_parameters: ''
|