summaryrefslogtreecommitdiffstats
path: root/deployment/playbooks/scaleup.yaml
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-02-07 02:08:23 +0530
committerValerii Ponomarov <vponomar@redhat.com>2019-02-07 02:36:02 +0530
commit25fcd9c5aa4c360eff19ef08fc4e2bdff6147ffd (patch)
tree544cf09479861ee7c434a7f9ece19167c14ddf35 /deployment/playbooks/scaleup.yaml
parenta6c7dead0d6ddad4dae93a4292891617b50b44a0 (diff)
Add end-to-end OCP 'deployment' functionality
Add end-to-end deployment tool of OpenShift and OpenShift Container Storage on top of VMWare. Added code is modified version of the 'reference-architecture/vmware-ansible' dir from the following repo: https://github.com/vponomaryov/openshift-ansible-contrib Read 'deployment/README.rst' file for more details about the deployment tool. Change-Id: Ic96f252ff786cc1ecf24d27f0ec47e324131e41b
Diffstat (limited to 'deployment/playbooks/scaleup.yaml')
-rw-r--r--deployment/playbooks/scaleup.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/deployment/playbooks/scaleup.yaml b/deployment/playbooks/scaleup.yaml
new file mode 100644
index 00000000..4a21eadc
--- /dev/null
+++ b/deployment/playbooks/scaleup.yaml
@@ -0,0 +1,35 @@
+---
+- include: "{{ (openshift_vers in ['v3_6', 'v3_7']) |
+ ternary(
+ lookup('env', 'VIRTUAL_ENV') +
+ '/usr/share/ansible/openshift-ansible/playbooks/' +
+ 'byo/openshift-node/scaleup.yml',
+ 'noop.yaml')
+ }}"
+
+- include: "{{ (openshift_vers in ['v3_9']) |
+ ternary(
+ lookup('env', 'VIRTUAL_ENV') +
+ '/usr/share/ansible/openshift-ansible/playbooks/' +
+ 'openshift-node/scaleup.yml',
+ 'noop.yaml')
+ }}"
+
+# NOTE(vponomar): following playbooks are what we need from
+# 'playbooks/openshift-node/scaleup.yml' playbook in OCP3.10 and OCP3.11
+# It may be changed for OCP3.11+ versions.
+- include: "{{ (openshift_vers not in ['v3_6', 'v3_7', 'v3_9']) |
+ ternary(
+ lookup('env', 'VIRTUAL_ENV') +
+ '/usr/share/ansible/openshift-ansible/playbooks/' +
+ 'openshift-node/private/bootstrap.yml',
+ 'noop.yaml')
+ }}"
+
+- include: "{{ (openshift_vers not in ['v3_6', 'v3_7', 'v3_9']) |
+ ternary(
+ lookup('env', 'VIRTUAL_ENV') +
+ '/usr/share/ansible/openshift-ansible/playbooks/' +
+ 'openshift-node/private/join.yml',
+ 'noop.yaml')
+ }}"