summaryrefslogtreecommitdiffstats
path: root/playbooks/openshift-node/scaleup.yml
diff options
context:
space:
mode:
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