[CORD-1724] Add Ability to Create Tenants/Instances in TOSCA
Change-Id: Ic58116693de06c650a32361b5bdacc900f6373f9
diff --git a/mcord-tenant-playbook.yml b/mcord-tenant-playbook.yml
new file mode 100644
index 0000000..4c543af
--- /dev/null
+++ b/mcord-tenant-playbook.yml
@@ -0,0 +1,25 @@
+---
+# mcord-tenant-playbook.yml
+# Creates tenants/instances predefined in TOSCA during build time
+
+- name: Include vars
+ hosts: all
+ tasks:
+ - name: Include variables
+ include_vars: "{{ item }}"
+ with_items:
+ - "profile_manifests/{{ cord_profile }}.yml"
+ - profile_manifests/local_vars.yml
+
+- name: Create mcord tenants/instances
+ hosts: head
+ roles:
+ - test-mcord-tenants-config
+
+- include: add-onboard-containers-playbook.yml
+
+- name: Enable mcord tenants/instances
+ hosts: xos_ui
+ connection: docker
+ roles:
+ - test-mcord-tenants-enable