summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-01-31 14:22:41 -0500
committerGitHub <noreply@github.com>2017-01-31 14:22:41 -0500
commit5c1d53012537f0479e771df14bf2a05afa768b12 (patch)
tree9c8e422fa6850010778b459d6ef0604092f23143 /playbooks/common/openshift-cluster
parentf02c2f2de47e905c92f3fdaaf077f0bfa845a537 (diff)
parent655bbf8120fbade640651827ae80f9700da37fe9 (diff)
downloadopenshift-5c1d53012537f0479e771df14bf2a05afa768b12.tar.gz
openshift-5c1d53012537f0479e771df14bf2a05afa768b12.tar.bz2
openshift-5c1d53012537f0479e771df14bf2a05afa768b12.tar.xz
openshift-5c1d53012537f0479e771df14bf2a05afa768b12.zip
Merge pull request #3232 from sdodson/ovs-upgrade
During node upgrade upgrade openvswitch rpms
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
index 5fa74898f..a6a49e5ff 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
@@ -81,6 +81,21 @@
failed_when: false
when: openshift.common.is_containerized | bool
+ - name: Upgrade openvswitch
+ package:
+ name: openvswitch
+ state: latest
+ register: ovs_pkg
+ when: inventory_hostname in groups.oo_nodes_to_upgrade and not openshift.common.is_containerized | bool
+
+ - name: Restart openvswitch
+ systemd:
+ name: openvswitch
+ state: restarted
+ when:
+ - inventory_hostname in groups.oo_nodes_to_upgrade and not openshift.common.is_containerized | bool
+ - ovs_pkg | changed
+
# Mandatory Docker restart, ensure all containerized services are running:
- include: docker/restart.yml