summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging_elasticsearch/tasks/main.yaml
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-01-10 01:36:20 -0800
committerGitHub <noreply@github.com>2018-01-10 01:36:20 -0800
commit3625cb596bfdeba027e9e3ed364b2102899edfcd (patch)
tree396f1991f82557eed4ea3c3c7568fc4adb85d53f /roles/openshift_logging_elasticsearch/tasks/main.yaml
parent4a3786539efad2ad41733ab521fc2e8e1ab87d9c (diff)
parentceca2f9a8cbc11095c2fac20fcc789a61c424098 (diff)
downloadopenshift-3625cb596bfdeba027e9e3ed364b2102899edfcd.tar.gz
openshift-3625cb596bfdeba027e9e3ed364b2102899edfcd.tar.bz2
openshift-3625cb596bfdeba027e9e3ed364b2102899edfcd.tar.xz
openshift-3625cb596bfdeba027e9e3ed364b2102899edfcd.zip
Merge pull request #6602 from ewolinetz/es_full_cluster_restart
Automatic merge from submit-queue. Adding logic to do a full cluster restart if we are incrementing our … …major versions of ES This will help with the upgrade from 2.x to 5.x for ES, it also fixes something I came across with the handler on 3.7 where it checks the prior deployed version of the ES pod rather than the new one.
Diffstat (limited to 'roles/openshift_logging_elasticsearch/tasks/main.yaml')
-rw-r--r--roles/openshift_logging_elasticsearch/tasks/main.yaml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_logging_elasticsearch/tasks/main.yaml b/roles/openshift_logging_elasticsearch/tasks/main.yaml
index bf3b743af..ff5ad1045 100644
--- a/roles/openshift_logging_elasticsearch/tasks/main.yaml
+++ b/roles/openshift_logging_elasticsearch/tasks/main.yaml
@@ -32,6 +32,18 @@
- include_tasks: determine_version.yaml
+- set_fact:
+ full_restart_cluster: True
+ when:
+ - _es_installed_version is defined
+ - _es_installed_version.split('.')[0] | int < __es_version.split('.')[0] | int
+
+- set_fact:
+ full_restart_cluster: True
+ when:
+ - _es_ops_installed_version is defined
+ - _es_ops_installed_version.split('.')[0] | int < __es_version.split('.')[0] | int
+
# allow passing in a tempdir
- name: Create temp directory for doing work in
command: mktemp -d /tmp/openshift-logging-ansible-XXXXXX