Merge branch 'master' of adellam/ansible-roles into master
This commit is contained in:
commit
7e8f70f484
|
@ -1,10 +1,13 @@
|
||||||
---
|
---
|
||||||
elasticsearch_repo_key: https://packages.elastic.co/GPG-KEY-elasticsearch
|
elasticsearch_repo_key: https://packages.elastic.co/GPG-KEY-elasticsearch
|
||||||
elasticsearch_major_version: 2
|
|
||||||
elasticsearch_repo_version: '{{ elasticsearch_major_version }}.x'
|
elasticsearch_repo_version: '{{ elasticsearch_major_version }}.x'
|
||||||
elasticsearch_repo: 'deb http://packages.elastic.co/elasticsearch/{{ elasticsearch_repo_version }}/debian stable main'
|
#elasticsearch_major_version: 2
|
||||||
#elasticsearch_major_version: 5
|
#elasticsearch_repo: 'deb http://packages.elastic.co/elasticsearch/{{ elasticsearch_repo_version }}/debian stable main'
|
||||||
#elasticsearch_repo: 'deb https://artifacts.elastic.co/packages/{{ elasticsearch_repo_version }}/apt stable main'
|
elasticsearch_major_version: 5
|
||||||
|
elasticsearch_minor_version: 4
|
||||||
|
elasticsearch_patch_version: 0
|
||||||
|
elasticsearch_version: '{{ elasticsearch_major_version }}.{{ elasticsearch_minor_version }}.{{ elasticsearch_patch_version }}'
|
||||||
|
elasticsearch_repo: 'deb https://artifacts.elastic.co/packages/{{ elasticsearch_repo_version }}/apt stable main'
|
||||||
elasticsearch_packages:
|
elasticsearch_packages:
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
|
|
||||||
|
@ -18,6 +21,8 @@ elasticsearch_bind_ip: 0.0.0.0
|
||||||
elasticsearch_discovery_host_list: '["127.0.0.1", "[::1]"]'
|
elasticsearch_discovery_host_list: '["127.0.0.1", "[::1]"]'
|
||||||
elasticsearch_define_majority_of_nodes: True
|
elasticsearch_define_majority_of_nodes: True
|
||||||
elasticsearch_majority_of_nodes: 1
|
elasticsearch_majority_of_nodes: 1
|
||||||
|
elasticsearch_bootstrap_known_masters:
|
||||||
|
- '{{ ansible_fqdn }}'
|
||||||
elasticsearch_real_cluster: False
|
elasticsearch_real_cluster: False
|
||||||
elasticsearch_recover_after_nodes: 3
|
elasticsearch_recover_after_nodes: 3
|
||||||
elasticsearch_max_local_storage_nodes: 1
|
elasticsearch_max_local_storage_nodes: 1
|
||||||
|
@ -30,12 +35,12 @@ elasticsearch_max_open_files: 65536
|
||||||
elasticsearch_disable_bootstrap_syscall_filter: True
|
elasticsearch_disable_bootstrap_syscall_filter: True
|
||||||
|
|
||||||
# bin/plugin for 2.x, bin/elasticsearch-plugin for 5.x
|
# bin/plugin for 2.x, bin/elasticsearch-plugin for 5.x
|
||||||
#elasticsearch_plugin_bin: /usr/share/elasticsearch/bin/elasticsearch-plugin
|
#elasticsearch_plugin_bin: /usr/share/elasticsearch/bin/plugin
|
||||||
elasticsearch_plugin_bin: /usr/share/elasticsearch/bin/plugin
|
|
||||||
#elasticsearch_plugins:
|
#elasticsearch_plugins:
|
||||||
# - { name: 'royrusso/elasticsearch-HQ', state: 'present' }
|
# - { name: 'royrusso/elasticsearch-HQ', state: 'present' }
|
||||||
|
elasticsearch_plugin_bin: /usr/share/elasticsearch/bin/elasticsearch-plugin
|
||||||
|
|
||||||
# elasticsearch 5 not supported yet, so set it to False when installing 5.x
|
# elasticsearch 5 not supported yet, so set it to False when installing 5.x
|
||||||
elasticsearch_hq_install: True
|
elasticsearch_hq_install: False
|
||||||
elasticsearch_hq_plugin:
|
elasticsearch_hq_plugin:
|
||||||
- { name: 'royrusso/elasticsearch-HQ', state: 'present' }
|
- { name: 'royrusso/elasticsearch-HQ', state: 'present' }
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
- name: Install the elasticsearch HQ plugin
|
- name: Install the elasticsearch HQ plugin
|
||||||
elasticsearch_plugin: name="{{ item.name }}" state={{ item.state }} plugin_bin={{ elasticsearch_plugin_bin }} url={{ item.url|default(omit) }} version={{ item.version|default(omit) }}
|
elasticsearch_plugin: name="{{ item.name }}" state={{ item.state }} plugin_bin={{ elasticsearch_plugin_bin }} url={{ item.url|default(omit) }} version={{ item.version|default(omit) }}
|
||||||
with_items: '{{ elasticsearch_hq_plugin | default ([]) }}'
|
with_items: '{{ elasticsearch_hq_plugin | default ([]) }}'
|
||||||
when: elasticsearch_hq_install
|
when:
|
||||||
|
- elasticsearch_major_version <= 2
|
||||||
|
- elasticsearch_hq_install
|
||||||
|
|
||||||
when: elasticsearch_plugins is defined
|
when: elasticsearch_plugins is defined
|
||||||
tags: [ 'elasticsearch', 'es_plugins' ]
|
tags: [ 'elasticsearch', 'es_plugins' ]
|
||||||
|
|
|
@ -21,6 +21,13 @@ cluster.name: {{ elasticsearch_cluster_name }}
|
||||||
# Use a descriptive name for the node:
|
# Use a descriptive name for the node:
|
||||||
#
|
#
|
||||||
node.name: {{ ansible_fqdn }}
|
node.name: {{ ansible_fqdn }}
|
||||||
|
|
||||||
|
{% if elasticsearch_major_version >= 7 %}
|
||||||
|
cluster.initial_master_nodes:
|
||||||
|
{% for n in elasticsearch_bootstrap_known_masters 5}
|
||||||
|
- {{ n }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
#
|
#
|
||||||
# Add custom attributes to the node:
|
# Add custom attributes to the node:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue