diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-08-18 09:51:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 09:51:22 -0400 |
commit | d44838a8ea38aafd262b5d1c2b2127874ac43511 (patch) | |
tree | c89a4de30e2d94d9597bca1bbddbdc2f728d314d /playbooks/byo/openshift-master | |
parent | ea491f041a2a93352543bc774052efc9b2cdcac3 (diff) | |
parent | eec2f317cb4ea707f4e528bd7bb6f4e643fb865d (diff) | |
download | openshift-d44838a8ea38aafd262b5d1c2b2127874ac43511.tar.gz openshift-d44838a8ea38aafd262b5d1c2b2127874ac43511.tar.bz2 openshift-d44838a8ea38aafd262b5d1c2b2127874ac43511.tar.xz openshift-d44838a8ea38aafd262b5d1c2b2127874ac43511.zip |
Merge pull request #4784 from abutcher/noop-scaleup
Fail scaleup configuration when there are no new_nodes or new_masters
Diffstat (limited to 'playbooks/byo/openshift-master')
-rw-r--r-- | playbooks/byo/openshift-master/scaleup.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/playbooks/byo/openshift-master/scaleup.yml b/playbooks/byo/openshift-master/scaleup.yml index 8aa07a664..64811e80d 100644 --- a/playbooks/byo/openshift-master/scaleup.yml +++ b/playbooks/byo/openshift-master/scaleup.yml @@ -1,6 +1,20 @@ --- - include: ../openshift-cluster/initialize_groups.yml +- name: Ensure there are new_masters + hosts: localhost + connection: local + become: no + gather_facts: no + tasks: + - fail: + msg: > + Detected no new_masters or no new_nodes in inventory. Please + add hosts to the new_masters and new_nodes host groups to add + masters. + when: + - (g_new_master_hosts | default([]) | length == 0) or (g_new_node_hosts | default([]) | length == 0) + - include: ../../common/openshift-master/scaleup.yml vars: openshift_cluster_id: "{{ cluster_id | default('default') }}" |