4e855db6b2
At the moment it's possible to deploy VPNaaS for non-OVN environemnts only. OVN implementation is slighly different and requires a standalone agent to run on gateway hosts, where OVN router is active. This agent spawns namespaces as used to do and talks through RPC with API. More detailed spec on the feature can be found here [1]. There's also configuration reference in progress of writing [2]. [1] https://opendev.org/openstack/neutron-specs/src/branch/master/specs/xena/vpnaas-ovn.rst [2] https://review.opendev.org/c/openstack/neutron-vpnaas/+/895651 Change-Id: Idb223ee0d8187f372682aafda1b8d6fd78cb71d1 Change-Id: Iad163ac7b032a97bd49164d94490b0f0deb83d90
60 lines
2.6 KiB
YAML
60 lines
2.6 KiB
YAML
---
|
|
# Copyright 2018, SUSE Linux GmbH.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
###
|
|
### Packages
|
|
###
|
|
|
|
#
|
|
# Compile a list of the distro packages to install based on
|
|
# whether the host is in the host group and the service is
|
|
# enabled.
|
|
#
|
|
neutron_package_list: |-
|
|
{% set packages = neutron_distro_packages %}
|
|
{% if neutron_needs_openvswitch | bool %}
|
|
{% if (ovs_dpdk_support and ansible_facts['pkg_mgr'] == 'apt') %}
|
|
{% set _ = packages.extend(neutron_ovs_dpdk_required_packages) %}
|
|
{% else %}
|
|
{% set _ = packages.extend(neutron_ovs_distro_packages) %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if neutron_services['neutron-linuxbridge-agent']['group'] in group_names and neutron_services['neutron-linuxbridge-agent'].service_en | bool %}
|
|
{% set _ = packages.extend(neutron_lxb_distro_packages) %}
|
|
{% endif %}
|
|
{% if (neutron_services['neutron-l3-agent']['group'] in group_names or
|
|
neutron_services['neutron-ovn-vpn-agent']['group'] in group_names) and neutron_vpnaas | bool %}
|
|
{% set _ = packages.extend(neutron_vpnaas_distro_packages) %}
|
|
{% endif %}
|
|
{% if neutron_services['neutron-metadata-agent']['group'] in group_names %}
|
|
{% set _ = packages.extend(neutron_metadata_agent_distro_packages) %}
|
|
{% endif %}
|
|
{% if (neutron_services['neutron-ovn-northd']['group'] in group_names and neutron_plugin_type == 'ml2.ovn')
|
|
or (neutron_services['neutron-ovn-controller']['group'] in group_names and neutron_plugin_type == 'ml2.ovn') %}
|
|
{% set _ = packages.extend(neutron_ovn_distro_packages) %}
|
|
{% endif %}
|
|
{% if (neutron_services['neutron-ovn-northd']['group'] in group_names and neutron_plugin_type == 'ml2.ovn') %}
|
|
{% set _ = packages.extend(neutron_ovn_northd_distro_packages) %}
|
|
{% endif %}
|
|
{% if (neutron_services['neutron-ovn-controller']['group'] in group_names and neutron_plugin_type == 'ml2.ovn') %}
|
|
{% set _ = packages.extend(neutron_ovn_controller_distro_packages) %}
|
|
{% endif %}
|
|
{% if neutron_oslomsg_amqp1_enabled | bool %}
|
|
{% set _ = packages.extend(neutron_oslomsg_amqp1_distro_packages) %}
|
|
{% endif %}
|
|
{{ packages }}
|
|
|
|
neutron_bin: "/openstack/venvs/neutron-{{ neutron_venv_tag }}/bin"
|