summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/upgrades
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2017-01-11 10:10:27 -0800
committerTim Bielawa <tbielawa@redhat.com>2017-01-11 10:12:19 -0800
commit699e895abcdb18ec81c977fb5143eef6794cd807 (patch)
treeeb74a38ce81d754d0939f7671c79eeb817e5c031 /playbooks/common/openshift-cluster/upgrades
parentc9919242e76c03ea25993d8ee14c2ac64014077c (diff)
downloadopenshift-699e895abcdb18ec81c977fb5143eef6794cd807.tar.gz
openshift-699e895abcdb18ec81c977fb5143eef6794cd807.tar.bz2
openshift-699e895abcdb18ec81c977fb5143eef6794cd807.tar.xz
openshift-699e895abcdb18ec81c977fb5143eef6794cd807.zip
Add a fact to select --evacuate or --drain based on your OCP version
Closes #3070
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades')
-rw-r--r--playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
index 68b111df4..86b344d7a 100644
--- a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
+++ b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml
@@ -41,7 +41,7 @@
- name: Drain Node for Kubelet upgrade
command: >
- {{ hostvars[groups.oo_first_master.0].openshift.common.client_binary }} adm manage-node {{ openshift.node.nodename | lower }} --drain --force
+ {{ hostvars[groups.oo_first_master.0].openshift.common.client_binary }} adm manage-node {{ openshift.node.nodename | lower }} {{ openshift.common.evacuate_or_drain }} --force
delegate_to: "{{ groups.oo_first_master.0 }}"
when: inventory_hostname in groups.oo_nodes_to_upgrade