- Stop forcing es_xpack_features variable in order to let elasticsearch install default features described in http://localhost:9200/_xpack - Change xpack test scope to be able to test default xpack install - xpack scenario will test xpack install with default features - xpack upgrade scenario will fully test security feature - oss-to-xpack-upgrade will test installing only other specific features - Cleanup some duplicate serverspec tests - Remove `system_key`feature (deprecated in 5.6 and removed in 6.0 - [Breaking Changes 6.0.0](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-6.0.0-xes.html)) - Cleanup some ansible code (especially in `when` conditions)
24 lines
1 KiB
YAML
24 lines
1 KiB
YAML
---
|
|
|
|
- name: set fact es_version_changed
|
|
set_fact: es_version_changed={{ ((elasticsearch_install_from_package is defined and (debian_elasticsearch_install_from_repo.changed or redhat_elasticsearch_install_from_repo.changed)) or (elasticsearch_install_from_package is defined and elasticsearch_install_from_package.changed)) }}
|
|
|
|
- name: include elasticsearch-xpack-install.yml
|
|
include: elasticsearch-xpack-install.yml
|
|
when: es_install_xpack
|
|
|
|
#Security configuration
|
|
- name: include security/elasticsearch-security.yml
|
|
include: security/elasticsearch-security.yml
|
|
when: es_enable_xpack
|
|
|
|
#Add any feature specific configuration here
|
|
- name: Set Plugin Directory Permissions
|
|
become: yes
|
|
file: state=directory path={{ es_home }}/plugins owner={{ es_user }} group={{ es_group }} recurse=yes
|
|
|
|
#Make sure elasticsearch.keystore has correct Permissions
|
|
- name: Set elasticsearch.keystore Permissions
|
|
become: yes
|
|
file: state=file path={{ conf_dir }}/elasticsearch.keystore owner={{ es_user }} group={{ es_group }}
|
|
when: es_enable_xpack
|