diff options
author | Michael Gugino <mgugino@redhat.com> | 2018-01-19 12:43:44 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2018-01-19 18:24:58 -0500 |
commit | 682ddb8744af07939c39699f223cc6455bdece01 (patch) | |
tree | b7eff2df126f99fe93dcf1f3a8cd74682954e285 /playbooks/openshift-node/scaleup.yml | |
parent | 3c1eba1488e1d3570320381ee5eee6ea760e7659 (diff) | |
download | openshift-682ddb8744af07939c39699f223cc6455bdece01.tar.gz openshift-682ddb8744af07939c39699f223cc6455bdece01.tar.bz2 openshift-682ddb8744af07939c39699f223cc6455bdece01.tar.xz openshift-682ddb8744af07939c39699f223cc6455bdece01.zip |
Fix master scaleup play
Allow playbooks/openshift-master/scaleup.yml to call
prerequisites.yml at the proper time.
Related-to: https://github.com/openshift/openshift-ansible/pull/6784
Diffstat (limited to 'playbooks/openshift-node/scaleup.yml')
-rw-r--r-- | playbooks/openshift-node/scaleup.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks/openshift-node/scaleup.yml b/playbooks/openshift-node/scaleup.yml index cc03b72a2..9cc7263b7 100644 --- a/playbooks/openshift-node/scaleup.yml +++ b/playbooks/openshift-node/scaleup.yml @@ -12,6 +12,14 @@ new_nodes host group to add nodes. when: - g_new_node_hosts | default([]) | length == 0 + - fail: + msg: > + Please run playbooks/openshift-master/scaleup.yml if you need to + scale up both masters and nodes. This playbook is only needed if + you are only adding new nodes and not new masters. + when: + - g_new_node_hosts | default([]) | length > 0 + - g_new_master_hosts | default([]) | length > 0 # if g_new_node_hosts is not empty, oo_nodes_to_config will be set to # g_new_node_hosts via evaluate_groups.yml |