diff options
author | Jan Chaloupka <jchaloup@redhat.com> | 2017-02-01 16:53:59 +0100 |
---|---|---|
committer | Jan Chaloupka <jchaloup@redhat.com> | 2017-02-02 15:20:45 +0100 |
commit | 0677e44c6ecf37e934183e206a4762c39f0704f2 (patch) | |
tree | d9bc39f2a0d7cdaaaa876ec342903afa3c7e7ce4 /playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml | |
parent | 4dfe8c715bfc49a913d7c7bea80c475a9b50b41e (diff) | |
download | openshift-0677e44c6ecf37e934183e206a4762c39f0704f2.tar.gz openshift-0677e44c6ecf37e934183e206a4762c39f0704f2.tar.bz2 openshift-0677e44c6ecf37e934183e206a4762c39f0704f2.tar.xz openshift-0677e44c6ecf37e934183e206a4762c39f0704f2.zip |
run node upgrade if master is node as part of the control plan upgrade only
Diffstat (limited to 'playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml')
-rw-r--r-- | playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml index c0746a9e6..59188c570 100644 --- a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml +++ b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml @@ -1,6 +1,6 @@ --- - name: Drain and upgrade nodes - hosts: oo_nodes_to_upgrade + hosts: oo_nodes_to_upgrade:!oo_masters_to_config # This var must be set with -e on invocation, as it is not a per-host inventory var # and is evaluated early. Values such as "20%" can also be used. serial: "{{ openshift_upgrade_nodes_serial | default(1) }}" @@ -20,7 +20,7 @@ - set_fact: was_schedulable: "{{ 'unschedulable' not in (node_output.stdout | from_json).spec }}" - - name: Mark unschedulable if host is a node + - name: Mark node unschedulable command: > {{ hostvars[groups.oo_first_master.0].openshift.common.client_binary }} adm manage-node {{ openshift.node.nodename | lower }} --schedulable=false delegate_to: "{{ groups.oo_first_master.0 }}" |