From 93be25b50c49c45b6913202ff5fb009d430f37c6 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Tue, 26 Sep 2017 13:26:32 +0200 Subject: Create a scenario role As discussed with the releng-xci team, each project should have the scenario in its repo Change-Id: I2cb407892edeeccabf396c7b1c341c78fba2828e Signed-off-by: Manuel Buil Signed-off-by: Trevor Bramwell (cherry picked from commit 90b3ef7c16d604e53cce22169822878438ced78a) --- .../os-odl-sfc/tasks/add-sfc-repos-and-inventory.yml | 16 ++++++++++++++++ .../os-odl-sfc/role/os-odl-sfc/tasks/copy-OSA-files.yml | 12 ++++++++++++ scenarios/os-odl-sfc/role/os-odl-sfc/tasks/main.yml | 15 +++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 scenarios/os-odl-sfc/role/os-odl-sfc/tasks/add-sfc-repos-and-inventory.yml create mode 100644 scenarios/os-odl-sfc/role/os-odl-sfc/tasks/copy-OSA-files.yml create mode 100644 scenarios/os-odl-sfc/role/os-odl-sfc/tasks/main.yml (limited to 'scenarios/os-odl-sfc/role/os-odl-sfc/tasks') diff --git a/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/add-sfc-repos-and-inventory.yml b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/add-sfc-repos-and-inventory.yml new file mode 100644 index 00000000..1a70c388 --- /dev/null +++ b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/add-sfc-repos-and-inventory.yml @@ -0,0 +1,16 @@ +--- + +- name: Add networking-odl and networking-sfc repos + copy: + src: openstack-ansible/playbooks/defaults/repo_packages/opendaylight.yml + dest: "{{OPENSTACK_OSA_PATH}}/playbooks/defaults/repo_packages/opendaylight.yml" + +- name: Provide nova inventory which adds OVS-NSH hosts + copy: + src: openstack-ansible/playbooks/inventory_odl/env.d/nova.yml + dest: "{{OPENSTACK_OSA_PATH}}/playbooks/inventory/env.d/nova.yml" + +- name: Provide neutron inventory which adds ODL hosts + copy: + src: openstack-ansible/playbooks/inventory_odl/env.d/neutron.yml + dest: "{{OPENSTACK_OSA_PATH}}/playbooks/inventory/env.d/neutron.yml" diff --git a/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/copy-OSA-files.yml b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/copy-OSA-files.yml new file mode 100644 index 00000000..3821d9d6 --- /dev/null +++ b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/copy-OSA-files.yml @@ -0,0 +1,12 @@ +--- +# + +- name: copy user_variables.yml + copy: + src: "{{XCI_FLAVOR}}/user_variables.yml" + dest: "{{OPENSTACK_OSA_ETC_PATH}}/user_variables.yml" + +- name: copy OPNFV role requirements + copy: + src: "ansible-role-requirements.yml" + dest: "{{OPENSTACK_OSA_PATH}}/ansible-role-requirements.yml" diff --git a/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/main.yml b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/main.yml new file mode 100644 index 00000000..f1fdcf2a --- /dev/null +++ b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/main.yml @@ -0,0 +1,15 @@ +--- +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2017 SUSE Linux GmbH +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +- name: Add SFC repos and inventory + include: add-sfc-repos-and-inventory.yml + +- name: Copy the OSA not-yet-upstreamed files + include: copy-OSA-files.yml -- cgit 1.2.3-korg