c3b3e91e81
All other roles have their pip_packages in defaults/main.yml and the lists were all in vars/main.yml before [1] was implemented. Since then, the py_pkgs lookup does not recognise that neutron has the project_group of 'neutron_all', but instead thinks it is in 'all'. This mismatches the git repo project group, resulting in a failed repo build if the group is not populated. It also results in neutron packages building even if neutron is not configured to be part of the build. This patch moves the vars back to vars/main.yml to restore proper functioning of the repo build and correct association with the project group. These vars are not used by the distro install process, so it does not matter where they're sourced. [1] https://review.openstack.org/573661 Change-Id: If8aa2dba6fc5b09a71c93de7f048ea716fc6a2c1
65 lines
2.8 KiB
YAML
65 lines
2.8 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_nsh_support and ansible_pkg_mgr in ['apt', 'zypper']) %}
|
|
{% set _ = packages.extend(neutron_ovs_nsh_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-lbaasv2-agent']['group'] in group_names and neutron_lbaasv2 | bool %}
|
|
{% set _ = packages.extend(neutron_lbaas_distro_packages) %}
|
|
{% endif %}
|
|
{% if neutron_services['neutron-vpnaas-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_developer_mode | bool %}
|
|
{% set _ = packages.extend(neutron_developer_mode_distro_packages) %}
|
|
{% endif %}
|
|
{% set _ = packages.extend(neutron_devel_distro_packages) %}
|
|
{{ packages }}
|
|
|
|
neutron_bin: "/openstack/venvs/neutron-{{ neutron_venv_tag }}/bin"
|
|
|
|
neutron_venv_download: "{{ not neutron_developer_mode | bool }}"
|