Ability to disable x-pack features

This commit is contained in:
Dale McDiarmid 2017-01-11 13:16:07 +00:00
parent 1a207458a6
commit f664580ce6
3 changed files with 22 additions and 2 deletions

View file

@ -210,7 +210,11 @@ ansible-playbook -i hosts ./your-playbook.yml
### Installing X-Pack Features ### Installing X-Pack Features
X-Pack features, such as Security, are supported. This feature is currently experimental. To enable X-Pack set the parameter `es_enable_xpack` to true and list the required features in the parameter `es_xpack_features`. The following additional parameters allow X-Pack to be configured: X-Pack features, such as Security, are supported. This feature is currently experimental. To enable X-Pack set the parameter `es_enable_xpack` to true and list the required features in the parameter `es_xpack_features`.
The parameter `es_xpack_features` by default enables all features i.e. it defaults to ["alerting","monitoring","graph","security","reporting"]
The following additional parameters allow X-Pack to be configured:
* ```es_message_auth_file``` System Key field to allow message authentication. This file should be placed in the 'files' directory. * ```es_message_auth_file``` System Key field to allow message authentication. This file should be placed in the 'files' directory.
* ```es_role_mapping``` Role mappings file declared as yml as described [here](https://www.elastic.co/guide/en/x-pack/current/mapping-roles.html) * ```es_role_mapping``` Role mappings file declared as yml as described [here](https://www.elastic.co/guide/en/x-pack/current/mapping-roles.html)

View file

@ -24,7 +24,7 @@ es_work_dir: "/tmp/elasticsearch"
es_max_open_files: 65536 es_max_open_files: 65536
es_allow_downgrades: false es_allow_downgrades: false
es_enable_xpack: false es_enable_xpack: false
es_xpack_features: [] es_xpack_features: ["alerting","monitoring","graph","security","reporting"]
#These are used for internal operations performed by ansible. #These are used for internal operations performed by ansible.
#They do not effect the current configuration #They do not effect the current configuration
es_api_host: "localhost" es_api_host: "localhost"

View file

@ -23,3 +23,19 @@ path.work: {{ work_dir }}
{% endif %} {% endif %}
path.logs: {{ log_dir }} path.logs: {{ log_dir }}
{% if not "security" in es_xpack_features %}
xpack.security.enabled: false
{% endif %}
{% if not "monitoring" in es_xpack_features %}
xpack.monitoring.enabled: false
{% endif %}
{% if not "alerting" in es_xpack_features %}
xpack.watcher.enabled: false
{% endif %}
{% if not "reporting" in es_xpack_features %}
xpack.reporting.enabled: false
{% endif %}