Commit 8d26b3ed by Feanil Patel

Merge pull request #1959 from gsehub/es-dynamic-scripting

Use templated ElasticSearch config for single-instance deployment
parents 26d6244d b6b65084
--- ---
# elasticsearch # elasticsearch
# #
# Dependencies: # Dependencies:
# #
# * common # * common
# * oraclejdk # * oraclejdk
# #
# Example play: # Example play:
# #
# This role can be used to do a single-server or clustered # This role can be used to do a single-server or clustered
# installation of the elasticsearch service. When a cluster # installation of the elasticsearch service. When a cluster
# is being installed, there are two important things that # is being installed, there are two important things that
...@@ -56,20 +56,17 @@ ...@@ -56,20 +56,17 @@
- name: update elasticsearch defaults - name: update elasticsearch defaults
template: > template: >
src=etc/default/elasticsearch.j2 dest=/etc/default/elasticsearch src=etc/default/elasticsearch.j2 dest=/etc/default/elasticsearch
when: ELASTICSEARCH_CLUSTERED
- name: drop the elasticsearch config - name: drop the elasticsearch config
template: > template: >
src=edx/etc/elasticsearch/elasticsearch.yml.j2 dest={{ elasticsearch_cfg_dir }}/elasticsearch.yml src=edx/etc/elasticsearch/elasticsearch.yml.j2 dest={{ elasticsearch_cfg_dir }}/elasticsearch.yml
mode=0744 mode=0744
when: ELASTICSEARCH_CLUSTERED
- name: drop the elasticsearch logging config - name: drop the elasticsearch logging config
template: > template: >
src=edx/etc/elasticsearch/logging.yml.j2 dest={{ elasticsearch_cfg_dir }}/logging.yml src=edx/etc/elasticsearch/logging.yml.j2 dest={{ elasticsearch_cfg_dir }}/logging.yml
mode=0744 mode=0744
when: ELASTICSEARCH_CLUSTERED
- name: Ensure elasticsearch is enabled and started - name: Ensure elasticsearch is enabled and started
service: name=elasticsearch state=started enabled=yes service: name=elasticsearch state=started enabled=yes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment