summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-node/scaleup.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-11-21 16:56:27 -0500
committerGitHub <noreply@github.com>2017-11-21 16:56:27 -0500
commit8255f668ebac12171098f5ba6cbb74370ec3141c (patch)
tree005604559faa06dcb5cae42c50dd1f47b594fb20 /playbooks/openshift-node/scaleup.yml
parent51a0cbd42807c91a5e30fa58362b8745a40607f2 (diff)
parent37cfec7fd40bc77c53368e8fc934d551d773c9bd (diff)
downloadopenshift-8255f668ebac12171098f5ba6cbb74370ec3141c.tar.gz
openshift-8255f668ebac12171098f5ba6cbb74370ec3141c.tar.bz2
openshift-8255f668ebac12171098f5ba6cbb74370ec3141c.tar.xz
openshift-8255f668ebac12171098f5ba6cbb74370ec3141c.zip
Merge pull request #6158 from mtnbikenc/consolidate-openshift-node
Playbook Consolidation - openshift-node
Diffstat (limited to 'playbooks/openshift-node/scaleup.yml')
-rw-r--r--playbooks/openshift-node/scaleup.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/playbooks/openshift-node/scaleup.yml b/playbooks/openshift-node/scaleup.yml
new file mode 100644
index 000000000..b4c39e37e
--- /dev/null
+++ b/playbooks/openshift-node/scaleup.yml
@@ -0,0 +1,21 @@
+---
+- include: ../init/evaluate_groups.yml
+
+- name: Ensure there are new_nodes
+ hosts: localhost
+ connection: local
+ become: no
+ gather_facts: no
+ tasks:
+ - fail:
+ msg: >
+ Detected no new_nodes in inventory. Please add hosts to the
+ new_nodes host group to add nodes.
+ when:
+ - 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/config.yml