Commit 8a5069a8 by Feanil Patel Committed by GitHub

Merge pull request #3908 from edx/feanil/update_elasticsearch_role

Update to elasticsearch 1.5
parents 58f3de67 c12cfee4
- Role: elasticsearch
- Replaced `elasticsearch_apt_key` and `elastic_search_apt_keyserver` with `elasticsearch_apt_key_url`
- Updated elasticsearch version to 1.5.0
- Role: edxapp - Role: edxapp
- Install development.txt in Vagrant and Docker devstacks - Install development.txt in Vagrant and Docker devstacks
......
FROM edxops/precise-common:latest FROM edxops/xenial-common:latest
MAINTAINER edxops MAINTAINER edxops
ADD . /edx/app/edx_ansible/edx_ansible ADD . /edx/app/edx_ansible/edx_ansible
...@@ -9,5 +9,5 @@ RUN /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook elasticsearch.ym ...@@ -9,5 +9,5 @@ RUN /edx/app/edx_ansible/venvs/edx_ansible/bin/ansible-playbook elasticsearch.ym
-i '127.0.0.1,' -i '127.0.0.1,'
WORKDIR /etc/elasticsearch WORKDIR /etc/elasticsearch
CMD ["/usr/share/elasticsearch/bin/elasticsearch","-f"] CMD service elasticsearch start && sleep 5 && tail -f /edx/var/log/elasticsearch/elasticsearch.log
EXPOSE 9200 9300 EXPOSE 9200 9300
...@@ -3,9 +3,8 @@ elasticsearch_app_dir: "{{ COMMON_APP_DIR }}/elasticsearch" ...@@ -3,9 +3,8 @@ elasticsearch_app_dir: "{{ COMMON_APP_DIR }}/elasticsearch"
elasticsearch_data_dir: "{{ COMMON_DATA_DIR }}/elasticsearch" elasticsearch_data_dir: "{{ COMMON_DATA_DIR }}/elasticsearch"
elasticsearch_log_dir: "{{ COMMON_LOG_DIR }}/elasticsearch" elasticsearch_log_dir: "{{ COMMON_LOG_DIR }}/elasticsearch"
elasticsearch_cfg_dir: "{{ COMMON_CFG_DIR }}/elasticsearch" elasticsearch_cfg_dir: "{{ COMMON_CFG_DIR }}/elasticsearch"
elasticsearch_apt_key: "46095ACC8548582C1A2699A9D27D666CD88E42B4" elasticsearch_apt_key_url: "https://packages.elastic.co/GPG-KEY-elasticsearch"
elasticsearch_apt_keyserver: "ha.pool.sks-keyservers.net" elasticsearch_repo: "deb http://packages.elastic.co/elasticsearch/1.5/debian stable main"
elasticsearch_repo: "deb http://packages.elasticsearch.org/elasticsearch/0.90/debian stable main"
elasticsearch_package_name: "elasticsearch" elasticsearch_package_name: "elasticsearch"
elasticsearch_user: "elasticsearch" elasticsearch_user: "elasticsearch"
elasticsearch_group: "elasticsearch" elasticsearch_group: "elasticsearch"
...@@ -14,4 +13,4 @@ elasticsearch_group: "elasticsearch" ...@@ -14,4 +13,4 @@ elasticsearch_group: "elasticsearch"
# Defaults for a single server installation. # Defaults for a single server installation.
ELASTICSEARCH_CLUSTER_MEMBERS: [] ELASTICSEARCH_CLUSTER_MEMBERS: []
ELASTICSEARCH_HEAP_SIZE: "512m" ELASTICSEARCH_HEAP_SIZE: "512m"
ELASTICSEARCH_VERSION: "0.90.13" ELASTICSEARCH_VERSION: "1.5.0"
...@@ -31,8 +31,7 @@ ...@@ -31,8 +31,7 @@
- name: Install Elasticsearch repo key - name: Install Elasticsearch repo key
apt_key: apt_key:
id: "{{ elasticsearch_apt_key }}" url: "{{ elasticsearch_apt_key_url }}"
keyserver: "{{ elasticsearch_apt_keyserver }}"
state: present state: present
tags: tags:
- install - install
......
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