Commit 186821ad authored by Christopher Harm's avatar Christopher Harm

Upgrading Elasticsearch to 6.x

parent 63ad9941
......@@ -8,6 +8,6 @@ elasticsearch_home: /usr/share/elasticsearch
elasticsearch_max_open_files: 65536
elasticsearch_max_map_count: 262144
elasticsearch_max_threads: 2048
elasticsearch_max_threads: 4096
elasticsearch_service_name: elasticsearch
[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
type=rpm-md
\ No newline at end of file
......@@ -37,26 +37,33 @@
line='vm.max_map_count={{ elasticsearch_max_map_count }}'
# Configure elasticsearch
- name: Configuring elasticsearch
- name: Configuring elasticsearch (http.cors.enabled)
lineinfile: "dest=/etc/elasticsearch/elasticsearch.yml insertafter=EOF
regexp='http.cors.enabled.*'
line='http.cors.enabled: true'"
notify:
- restart elasticsearch
- name: Configuring elasticsearch
- name: Configuring elasticsearch (network.publish_host)
lineinfile: "dest=/etc/elasticsearch/elasticsearch.yml insertafter='^#network.publish_host'
regexp='^network.publish_host.*'
line='network.publish_host: {{ ansible_eth1.ipv4.address }}'"
notify:
- restart elasticsearch
- name: Configuring elasticsearch
- name: Configuring elasticsearch (bootstrap.system_call_filter)
lineinfile: "dest=/etc/elasticsearch/elasticsearch.yml insertafter=EOF
regexp='^bootstrap.system_call_filter.*'
line='bootstrap.system_call_filter: false'"
notify:
- restart elasticsearch
- name: Configuring elasticsearch (network.host)
lineinfile: "dest=/etc/elasticsearch/elasticsearch.yml insertafter=EOF
regexp='network.host.*'
line='network.host: _site_'"
notify:
- restart elasticsearch
- name: make sure elasticsearch is started
service: name="{{ elasticsearch_service_name }}" state="started"
......
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