Update elasticsearch and kibana version to 5.x
Change the path for kibana binary and add upgrade tasks for elasticsearch [1]. [1] https://www.elastic.co/guide/en/elasticsearch/reference/5.0/restart-upgrade.html Depends-On: I8ed60eab2c15ae966960bcbeadb7aa25fece83a5 Change-Id: I9f566c0cb808c905736cc4090539672863260ad5 Implements: bp-elasticsearch-upgrade
This commit is contained in:
parent
94d04c6a68
commit
c408afbae7
@ -1,4 +1,43 @@
|
|||||||
---
|
---
|
||||||
|
# The official procedure for upgrade elasticsearch:
|
||||||
|
# https://www.elastic.co/guide/en/elasticsearch/reference/5.6/restart-upgrade.html
|
||||||
|
- name: Disable shard allocation
|
||||||
|
uri:
|
||||||
|
url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ elasticsearch_port }}/_cluster/settings"
|
||||||
|
method: PUT
|
||||||
|
status_code: 200
|
||||||
|
return_content: yes
|
||||||
|
body: {"transient":{"cluster.routing.allocation.enable": "none"}}
|
||||||
|
body_format: json
|
||||||
|
delegate_to: "{{ groups['elasticsearch'][0] }}"
|
||||||
|
run_once: true
|
||||||
|
|
||||||
|
- name: Perform a synced flush
|
||||||
|
uri:
|
||||||
|
url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ elasticsearch_port }}/_flush/synced"
|
||||||
|
method: POST
|
||||||
|
status_code: 200
|
||||||
|
return_content: yes
|
||||||
|
body_format: json
|
||||||
|
delegate_to: "{{ groups['elasticsearch'][0] }}"
|
||||||
|
run_once: true
|
||||||
|
|
||||||
|
# Stop all elasticsearch containers before applying configuration to ensure
|
||||||
|
# handlers are triggered to restart them.
|
||||||
|
- name: Stopping all elasticsearch containers
|
||||||
|
vars:
|
||||||
|
service_name: "elasticsearch"
|
||||||
|
service: "{{ elasticsearch_services[service_name] }}"
|
||||||
|
become: true
|
||||||
|
kolla_docker:
|
||||||
|
action: "stop_container"
|
||||||
|
common_options: "{{ docker_common_options }}"
|
||||||
|
name: "elasticsearch"
|
||||||
|
image: "{{ service.image }}"
|
||||||
|
environment: "{{ service.environment }}"
|
||||||
|
volumes: "{{ service.volumes }}"
|
||||||
|
when: inventory_hostname in groups[service.group]
|
||||||
|
|
||||||
- include_tasks: config.yml
|
- include_tasks: config.yml
|
||||||
|
|
||||||
- name: Flush handlers
|
- name: Flush handlers
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"command": "/opt/kibana/bin/kibana",
|
"command": "/usr/share/kibana/bin/kibana",
|
||||||
"config_files": [
|
"config_files": [
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/kibana.yml",
|
"source": "{{ container_config_directory }}/kibana.yml",
|
||||||
"dest": "/opt/kibana/config/kibana.yml",
|
"dest": "/etc/kibana/kibana.yml",
|
||||||
"owner": "kibana",
|
"owner": "kibana",
|
||||||
"perm": "0640"
|
"perm": "0640"
|
||||||
}
|
}
|
||||||
|
@ -5,15 +5,4 @@ server.host: "{{ api_interface_address }}"
|
|||||||
elasticsearch.url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ elasticsearch_port }}"
|
elasticsearch.url: "{{ internal_protocol }}://{{ kolla_internal_vip_address }}:{{ elasticsearch_port }}"
|
||||||
elasticsearch.requestTimeout: {{ kibana_elasticsearch_request_timeout }}
|
elasticsearch.requestTimeout: {{ kibana_elasticsearch_request_timeout }}
|
||||||
elasticsearch.shardTimeout: {{ kibana_elasticsearch_shard_timeout }}
|
elasticsearch.shardTimeout: {{ kibana_elasticsearch_shard_timeout }}
|
||||||
elasticsearch.ssl.verify: {{ kibana_elasticsearch_ssl_verify }}
|
elasticsearch.ssl.verificationMode: "{{ 'full' if kibana_elasticsearch_ssl_verify | bool else 'none' }}"
|
||||||
bundled_plugin_ids:
|
|
||||||
- plugins/dashboard/index
|
|
||||||
- plugins/discover/index
|
|
||||||
- plugins/doc/index
|
|
||||||
- plugins/kibana/index
|
|
||||||
- plugins/markdown_vis/index
|
|
||||||
- plugins/metric_vis/index
|
|
||||||
- plugins/settings/index
|
|
||||||
- plugins/table_vis/index
|
|
||||||
- plugins/vis_types/index
|
|
||||||
- plugins/visualize/index
|
|
||||||
|
Loading…
Reference in New Issue
Block a user