git.psu.edu has been upgraded to 13.8.4. Please email support@git.psu.edu with any Gitlab problems. See the git.psu.edu yammer group for more information. 13.9.x will be soon.

Commit 80ee670f authored by Christopher Harm's avatar Christopher Harm

Updating elasticsearch version to 5.x

parent 930c3105
......@@ -6,7 +6,8 @@ elasticsearch_group: elasticsearch
elasticsearch_home: /usr/share/elasticsearch
elasticsearch_max_open_files: 65535
elasticsearch_max_open_files: 65536
elasticsearch_max_map_count: 262144
elasticsearch_max_threads: 2048
elasticsearch_service_name: elasticsearch
\ No newline at end of file
elasticsearch_service_name: elasticsearch
[elasticsearch-1.4]
name=Elasticsearch repository for 1.4.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
\ No newline at end of file
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
......@@ -24,7 +24,12 @@
lineinfile: dest=/etc/security/limits.conf insertafter=EOF
regexp='^{{ elasticsearch_user }} - nofile {{ elasticsearch_max_open_files }}'
line='{{ elasticsearch_user }} - nofile {{ elasticsearch_max_open_files }}'
- name: Configuring threads limits
lineinfile: dest=/etc/security/limits.conf insertafter=EOF
regexp='^{{ elasticsearch_user }} - nproc {{ elasticsearch_max_threads }}'
line='{{ elasticsearch_user }} - nproc {{ elasticsearch_max_threads }}'
# Configure the virtual memory settings
- name: Configrure the virtual memory settings
lineinfile: dest=/etc/sysctl.conf insertafter=EOF
......@@ -52,12 +57,12 @@
- name: Configure elasticsearch service to start at boot
shell: chkconfig --level 2345 elasticsearch on creates=/etc/rc2.d/S80elasticsearch
- name: install the elasticsearch plugins
shell: "{{ elasticsearch_home }}/bin/plugin --install {{ item.plugin }} --verbose"
args:
creates: "{{ item.newfile }}"
with_items:
- { plugin: 'mobz/elasticsearch-head', newfile: '{{ elasticsearch_home }}/plugins/head/_site/index.html' }
- { plugin: 'royrusso/elasticsearch-HQ', newfile: '{{ elasticsearch_home }}/plugins/HQ/_site/index.html' }
- { plugin: 'elasticsearch/marvel/latest', newfile: '{{ elasticsearch_home }}/plugins/marvel/_site/index.html' }
- { plugin: 'lmenezes/elasticsearch-kopf', newfile: '{{ elasticsearch_home }}/plugins/kopf/_site/index.html' }
#- name: install the elasticsearch plugins
# shell: "{{ elasticsearch_home }}/bin/plugin --install {{ item.plugin }} --verbose"
# args:
# creates: "{{ item.newfile }}"
# with_items:
# - { plugin: 'mobz/elasticsearch-head', newfile: '{{ elasticsearch_home }}/plugins/head/_site/index.html' }
# - { plugin: 'royrusso/elasticsearch-HQ', newfile: '{{ elasticsearch_home }}/plugins/HQ/_site/index.html' }
# - { plugin: 'elasticsearch/marvel/latest', newfile: '{{ elasticsearch_home }}/plugins/marvel/_site/index.html' }
# - { plugin: 'lmenezes/elasticsearch-kopf', newfile: '{{ elasticsearch_home }}/plugins/kopf/_site/index.html' }
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