diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-22 11:02:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 11:02:21 -0500 |
commit | 012be35217f7415d50afe5e74b7e2e995feea6b5 (patch) | |
tree | aefe2efd52afcc36f3c9c504e70a9cc281371b7a /playbooks/openshift-master/scaleup.yml | |
parent | da85fd6aa7d71f97bfcaad3a2003921a5581a067 (diff) | |
parent | 78f11c8f671015d40a630208b548d0790ec3a823 (diff) | |
download | openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.tar.gz openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.tar.bz2 openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.tar.xz openshift-012be35217f7415d50afe5e74b7e2e995feea6b5.zip |
Merge pull request #6151 from mtnbikenc/consolidate-openshift-master
Playbook Consolidation - openshift-master
Diffstat (limited to 'playbooks/openshift-master/scaleup.yml')
-rw-r--r-- | playbooks/openshift-master/scaleup.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/playbooks/openshift-master/scaleup.yml b/playbooks/openshift-master/scaleup.yml new file mode 100644 index 000000000..aa0dd8094 --- /dev/null +++ b/playbooks/openshift-master/scaleup.yml @@ -0,0 +1,23 @@ +--- +- include: ../init/evaluate_groups.yml + +- name: Ensure there are new_masters or new_nodes + 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 + - g_new_node_hosts | default([]) | length == 0 + +# Need a better way to do the above check for node without +# running evaluate_groups and init/main.yml +- include: ../init/main.yml + +- include: private/scaleup.yml |