xci: playbooks: Add generic playbook for scenarios to plug their roles 85/44885/7
authorMarkos Chandras <mchandras@suse.de>
Thu, 12 Oct 2017 08:50:38 +0000 (09:50 +0100)
committerMarkos Chandras <mchandras@suse.de>
Thu, 19 Oct 2017 12:58:29 +0000 (13:58 +0100)
The new bootstrap-scenarios.yml playbook is aimed to be used by
scenarios to configure themselves right before we proceed with
the bootstrapping. This way we can avoid having scenario specific
stuff into the generic code.

Change-Id: I3026013719a50458c65405439712270f25f569ff
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/playbooks/bootstrap-scenarios.yml [new file with mode: 0644]
xci/playbooks/configure-opnfvhost.yml

diff --git a/xci/playbooks/bootstrap-scenarios.yml b/xci/playbooks/bootstrap-scenarios.yml
new file mode 100644 (file)
index 0000000..e7bd7dc
--- /dev/null
@@ -0,0 +1,10 @@
+---
+#
+# This file is aimed to be used by scenarios to plug into the XCI.
+# Ideally, all they need to do at this point is to include their
+# role using a statement like the following one
+#
+# - name: Include foobar role
+#   include_role:
+#     name: "foobar"
+#   when: OPNFV_SCENARIO == "foobar"
index faae623..798fe52 100644 (file)
@@ -98,6 +98,7 @@
       shell: "/bin/cp -rf {{OPNFV_RELENG_PATH}}/xci/file/openstack_services.yml {{OPENSTACK_OSA_PATH}}/playbooks/defaults/repo_packages/openstack_services.yml"
       when:
         - OPENSTACK_OSA_VERSION != "master"
+    - include: bootstrap-scenarios.yml
     - name: bootstrap ansible on opnfv host
       command: "/bin/bash ./scripts/bootstrap-ansible.sh"
       args: