Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Added node.roles in readme and created deprecation warning #772

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,11 @@ The following illustrates applying configuration parameters to an Elasticsearch
discovery.seed_hosts: "localhost:9301"
http.port: 9201
transport.port: 9301
node.data: false
node.master: true
node.roles:
- master
- ingest
- ml
- remote_cluster_client
bootstrap.memory_lock: true
es_heap_size: 1g
es_api_port: 9201
Expand Down Expand Up @@ -218,8 +221,11 @@ A more complex example:
discovery.seed_hosts: "localhost:9301"
http.port: 9201
transport.port: 9301
node.data: false
node.master: true
node.roles:
- master
- ingest
- ml
- remote_cluster_client
bootstrap.memory_lock: true
es_heap_size: 1g
es_start_service: false
Expand Down Expand Up @@ -254,8 +260,11 @@ An example of a three server deployment is shown below. The first server holds
cluster.initial_master_nodes: "elastic02"
discovery.seed_hosts: "elastic02:9300"
http.port: 9200
node.data: false
node.master: true
node.roles:
- master
- ingest
- ml
- remote_cluster_client
bootstrap.memory_lock: false
es_plugins:
- plugin: ingest-attachment
Expand All @@ -271,8 +280,11 @@ An example of a three server deployment is shown below. The first server holds
cluster.initial_master_nodes: "elastic02"
discovery.seed_hosts: "elastic02:9300"
http.port: 9200
node.data: true
node.master: false
node.roles:
- data
- ingest
- ml
- remote_cluster_client
bootstrap.memory_lock: false
es_plugins:
- plugin: ingest-attachment
Expand All @@ -285,8 +297,11 @@ An example of a three server deployment is shown below. The first server holds
cluster.name: "test-cluster"
discovery.seed_hosts: "elastic02:9300"
http.port: 9200
node.data: true
node.master: false
node.roles:
- data
- ingest
- ml
- remote_cluster_client
bootstrap.memory_lock: false
es_plugins:
- plugin: ingest-attachment
Expand Down
13 changes: 13 additions & 0 deletions tasks/elasticsearch-parameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,16 @@

- name: set fact use_system_d
set_fact: use_system_d={{ (ansible_distribution == 'Debian' and ansible_distribution_version is version('8', '>=')) or (ansible_distribution in ['RedHat','CentOS'] and ansible_distribution_version is version('7', '>=')) or (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('15', '>=')) or (ansible_distribution == 'Amazon' and ansible_distribution_version is version('2', '>=')) }}

- name: Warn about deprecated node role settings
debug:
msg: "WARNING: You are using deprecated node role settings. Use node.roles instead"
when:
- es_version is version('7.9.0', '>=')
- ( es_config['node.master'] is defined or
es_config['node.voting_only'] is defined or
es_config['node.data'] is defined or
es_config['node.ingest'] is defined or
es_config['node.ml'] is defined or
es_config['node.transform'] is defined or
es_config['node.remote_cluster_client'] is defined )