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
#
#
# Dependencies:
#
# * common
# * oraclejdk
#
#
# Example play:
#
#
# This role can be used to do a single-server or clustered
# installation of the elasticsearch service. When a cluster
# is being installed, there are two important things that
......@@ -56,20 +56,17 @@
- name: update elasticsearch defaults
template: >
src=etc/default/elasticsearch.j2 dest=/etc/default/elasticsearch
when: ELASTICSEARCH_CLUSTERED
- name: drop the elasticsearch config
template: >
src=edx/etc/elasticsearch/elasticsearch.yml.j2 dest={{ elasticsearch_cfg_dir }}/elasticsearch.yml
mode=0744
when: ELASTICSEARCH_CLUSTERED
- name: drop the elasticsearch logging config
template: >
src=edx/etc/elasticsearch/logging.yml.j2 dest={{ elasticsearch_cfg_dir }}/logging.yml
mode=0744
when: ELASTICSEARCH_CLUSTERED
- name: Ensure elasticsearch is enabled and started
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