summaryrefslogtreecommitdiffstats
path: root/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks
diff options
context:
space:
mode:
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2017-12-07 18:05:04 +0100
committerPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2018-01-25 12:40:19 +0100
commit56791ea2dc5bcd0ba2d1811753dbbb5934fd8a92 (patch)
tree44d8cd68ec0d8aa9c8c280a575b61a4585003452 /scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks
parentfbfb2513a8bc4f82ba2f5e69e64da659716cfb2d (diff)
os-odl-bgpvpn scenario for xci deployment
This includes scenario os-odl-bgpvpn scenario specific configuration files to make XCI to install Openstack (master and stable/pike) with OpenDaylight configured as a BGP speaker. XCI would automatically checkout sdnvpn repo and use scenarios directory for the configuration during its execution time. Change-Id: Ic86fcb171c8e97f7d3c3fb649ab0fb00368e6c6d Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Diffstat (limited to 'scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks')
-rw-r--r--scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-inventory-files-pike.yml16
-rw-r--r--scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-osa-files-pike.yml16
-rw-r--r--scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/main.yml39
3 files changed, 71 insertions, 0 deletions
diff --git a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-inventory-files-pike.yml b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-inventory-files-pike.yml
new file mode 100644
index 0000000..36dd7eb
--- /dev/null
+++ b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-inventory-files-pike.yml
@@ -0,0 +1,16 @@
+---
+
+- name: Add networking-odl and networking-bgpvpn repos
+ copy:
+ src: openstack-ansible/pike/playbooks/defaults/repo_packages/opendaylight.yml
+ dest: "{{OPENSTACK_OSA_PATH}}/playbooks/defaults/repo_packages/opendaylight.yml"
+
+- name: Provide neutron inventory which adds quagga into neutron server
+ copy:
+ src: openstack-ansible/pike/playbooks/inventory/env.d/neutron.yml
+ dest: "{{OPENSTACK_OSA_PATH}}/playbooks/inventory/env.d/neutron.yml"
+
+- name: Provide Quagga inventory which adds quagga hosts
+ copy:
+ src: openstack-ansible/pike/playbooks/inventory/env.d/quagga.yml
+ dest: "{{OPENSTACK_OSA_PATH}}/playbooks/inventory/env.d/quagga.yml"
diff --git a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-osa-files-pike.yml b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-osa-files-pike.yml
new file mode 100644
index 0000000..58b74fd
--- /dev/null
+++ b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/add-osa-files-pike.yml
@@ -0,0 +1,16 @@
+---
+
+- name: copy quagga variable file
+ copy:
+ src: openstack-ansible/pike/group-vars/quagga_all.yml
+ dest: "{{OPENSTACK_OSA_PATH}}/group-vars/quagga_all.yml"
+
+- name: Add the Quagga configuration playbook
+ copy:
+ src: openstack-ansible/pike/playbooks/os-setup-bgp-odl.yml
+ dest: "{{OPENSTACK_OSA_PATH}}/playbooks/os-setup-bgp-odl.yml"
+
+- name: copy OPNFV role requirements
+ copy:
+ src: "ansible-role-requirements-pike.yml"
+ dest: "{{OPENSTACK_OSA_PATH}}/ansible-role-requirements.yml" \ No newline at end of file
diff --git a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/main.yml b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/main.yml
new file mode 100644
index 0000000..c796342
--- /dev/null
+++ b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/main.yml
@@ -0,0 +1,39 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2017-18 Ericsson AB and others.
+# 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: copy user_variables_os-odl-bgpvpn.yml
+ copy:
+ src: "user_variables_os-odl-bgpvpn.yml"
+ dest: "{{OPENSTACK_OSA_ETC_PATH}}/user_variables_os-odl-bgpvpn.yml"
+
+- name: copy user_variables_os-odl-bgpvpn-ha.yml
+ copy:
+ src: "{{XCI_FLAVOR}}/user_variables_os-odl-bgpvpn-ha.yml"
+ dest: "{{OPENSTACK_OSA_ETC_PATH}}/user_variables_os-odl-bgpvpn-ha.yml"
+ when:
+ - XCI_FLAVOR == "ha"
+
+- name: copy os-odl-bgpvpn scenario specific openstack_user_config.yml
+ copy:
+ src: "{{XCI_FLAVOR}}/openstack_user_config.yml"
+ dest: "{{OPENSTACK_OSA_ETC_PATH}}/openstack_user_config.yml"
+
+- name: copy os-odl-bgpvpn scenario specific setup-openstack.yml
+ copy:
+ src: "setup-openstack.yml"
+ dest: " {{OPENSTACK_OSA_PATH}}/playbooks"
+
+- name: Copy the OSA not-yet-upstreamed files for Pike
+ include: add-osa-files-pike.yml
+ when: OPENSTACK_OSA_VERSION == "stable/pike"
+
+- name: Copy the OSA not-yet-upstreamed inventory files for Pike
+ include: add-inventory-files-pike.yml
+ when: OPENSTACK_OSA_VERSION == "stable/pike"