diff options
Diffstat (limited to 'scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn')
5 files changed, 30 insertions, 17 deletions
diff --git a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/setup-openstack.yml b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/setup-openstack.yml index a107374..7ebbe73 100644 --- a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/setup-openstack.yml +++ b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/setup-openstack.yml @@ -18,7 +18,8 @@ - include: os-cinder-install.yml - include: os-nova-install.yml - include: os-neutron-install.yml -- include: os-setup-bgp-odl.yml +# TODO: uncomment this playbook after https://review.openstack.org/#/c/523907/ is merged +#- include: os-setup-bgp-odl.yml - include: os-heat-install.yml - include: os-horizon-install.yml - include: os-swift-install.yml diff --git a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/user_variables_os-odl-bgpvpn.yml b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/user_variables_os-odl-bgpvpn.yml index 5a95a8a..47ef29b 100644 --- a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/user_variables_os-odl-bgpvpn.yml +++ b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/files/user_variables_os-odl-bgpvpn.yml @@ -37,4 +37,16 @@ neutron_ml2_drivers_type: "flat,vlan,vxlan" neutron_plugin_base: - odl-router_v2 - - bgpvpn
\ No newline at end of file + - bgpvpn + +# The neutron server node on which OSA configures ODL +# as the BGP speaker +odl_bgp_speaker_host: "{{ ((groups['neutron_server'] | intersect(ansible_play_hosts)) | list)[0] }}" + +# The neutron server node ip address (br-admin) on which OSA configures ODL +# as the BGP speaker +odl_bgp_speaker_host_ip_address: "{{ hostvars[groups['neutron_server'][0]]['container_address'] }}" + +# Configure OpenDaylight with Quagga +quagga: true + 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 index 36dd7eb..11ca33d 100644 --- 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 @@ -3,14 +3,14 @@ - 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" + 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" + 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" + 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 index 58b74fd..46c3700 100644 --- 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 @@ -3,14 +3,14 @@ - name: copy quagga variable file copy: src: openstack-ansible/pike/group-vars/quagga_all.yml - dest: "{{OPENSTACK_OSA_PATH}}/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" + 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 + dest: "{{openstack_osa_path}}/ansible-role-requirements.yml" 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 index 1e43434..76ee389 100644 --- a/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/main.yml +++ b/scenarios/os-odl-bgpvpn/role/os-odl-bgpvpn/tasks/main.yml @@ -11,29 +11,29 @@ - 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" + 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" + 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" + - 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" + 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" + 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" + 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" + when: openstack_osa_version == "stable/pike" |