7266fe2197
In order to radically simplify how we prepare the service venvs, we use a common role to do the wheel builds and the venv preparation. This makes the process far simpler to understand, because the role does its own building and installing. It also reduces the code maintenance burden, because instead of duplicating the build processes in the repo_build role and the service role - we only have it all done in a single place. We also change the role venv tag var to use the integrated build's common venv tag so that we can remove the role's venv tag in group_vars in the integrated build. This reduces memory consumption and also reduces the duplication. This is by no means the final stop in the simplification process, but it is a step forward. The will be work to follow which: 1. Replaces 'developer mode' with an equivalent mechanism that uses the common role and is simpler to understand. We will also simplify the provisioning of pip install arguments when doing this. 2. Simplifies the installation of optional pip packages. Right now it's more complicated than it needs to be due to us needing to keep the py_pkgs plugin working in the integrated build. 3. Deduplicates the distro package installs. Right now the role installs the distro packages twice - just before building the venv, and during the python_venv_build role execution. Depends-On: https://review.openstack.org/598957 Change-Id: I9c25b430bd7590131b50f36c697fcc24e1abaf64 Implements: blueprint python-build-install-simplification Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
190 lines
4.6 KiB
YAML
190 lines
4.6 KiB
YAML
---
|
|
# Copyright 2017, Rackspace US, Inc.
|
|
#
|
|
# 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.
|
|
|
|
# This special list brings together all of the package installations into one
|
|
# task to save time.
|
|
|
|
ironic_driver_types:
|
|
agent_ilo:
|
|
hardware_type: ilo
|
|
boot: ilo-virtual-media
|
|
deploy: direct
|
|
inspect: ilo
|
|
management: ilo
|
|
power: ilo
|
|
agent_ipmitool:
|
|
hardware_type: ipmi
|
|
boot: pxe
|
|
deploy: direct
|
|
inspect: inspector
|
|
management: ipmitool
|
|
power: ipmitool
|
|
agent_ipmitool_socat:
|
|
hardware_type: ipmi
|
|
boot: pxe
|
|
deploy: direct
|
|
inspect: inspector
|
|
management: ipmitool
|
|
power: ipmitool
|
|
agent_irmc:
|
|
hardware_type: irmc
|
|
boot: irmc-virtual-media
|
|
deploy: direct
|
|
inspect: irmc
|
|
management: irmc
|
|
power: irmc
|
|
agent_pxe_oneview:
|
|
hardware_type: oneview
|
|
boot: pxe
|
|
deploy: oneview-direct
|
|
inspect: oneview
|
|
management: oneview
|
|
power: oneview
|
|
agent_ucs:
|
|
hardware_type: cisco-ucs-managed
|
|
boot: pxe
|
|
deploy: direct
|
|
inspect: inspector
|
|
management: ucsm
|
|
power: ucsm
|
|
iscsi_ilo:
|
|
hardware_type: ilo
|
|
boot: ilo-virtual-media
|
|
deploy: iscsi
|
|
inspect: ilo
|
|
management: ilo
|
|
power: ilo
|
|
iscsi_irmc:
|
|
hardware_type: irmc
|
|
boot: irmc-virtual-media
|
|
deploy: iscsi
|
|
inspect: irmc
|
|
management: irmc
|
|
power: irmc
|
|
iscsi_pxe_oneview:
|
|
hardware_type: oneview
|
|
boot: pxe
|
|
deploy: oneview-iscsi
|
|
inspect: oneview
|
|
management: oneview
|
|
power: oneview
|
|
pxe_agent_cimc:
|
|
hardware_type: cisco-ucs-standalone
|
|
boot: pxe
|
|
deploy: direct
|
|
inspect: inspector
|
|
management: cimc
|
|
power: cimc
|
|
pxe_drac:
|
|
hardware_type: idrac
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: idrac
|
|
management: idrac
|
|
power: idrac
|
|
pxe_drac_inspector:
|
|
hardware_type: idrac
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: inspector
|
|
management: idrac
|
|
power: idrac
|
|
pxe_ilo:
|
|
hardware_type: ilo
|
|
boot: ilo-pxe
|
|
deploy: iscsi
|
|
inspect: ilo
|
|
management: ilo
|
|
power: ilo
|
|
pxe_ipmitool:
|
|
hardware_type: ipmi
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: inspector
|
|
management: ipmitool
|
|
power: ipmitool
|
|
pxe_ipmitool_socat:
|
|
hardware_type: ipmi
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: inspector
|
|
management: ipmitool
|
|
power: ipmitool
|
|
pxe_iscsi_cimc:
|
|
hardware_type: cisco-ucs-standalone
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: inspector
|
|
management: cimc
|
|
power: cimc
|
|
pxe_irmc:
|
|
hardware_type: irmc
|
|
boot: irmc-pxe
|
|
deploy: iscsi
|
|
inspect: irmc
|
|
management: irmc
|
|
power: irmc
|
|
pxe_snmp:
|
|
hardware_type: snmp
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: no-inspect
|
|
management: fake
|
|
power: snmp
|
|
pxe_ucs:
|
|
hardware_type: cisco-ucs-managed
|
|
boot: pxe
|
|
deploy: iscsi
|
|
inspect: inspector
|
|
management: ucsm
|
|
power: ucsm
|
|
|
|
ironic_packages_list: >
|
|
{%- set package_list = [] %}
|
|
{%- if ironic_developer_mode | bool %}
|
|
{%- set package_list = package_list + ironic_devel_distro_packages %}
|
|
{%- endif %}
|
|
{%- if ironic_services['ironic-api']['group'] in group_names %}
|
|
{%- set package_list = package_list + ironic_api_distro_packages %}
|
|
{%- endif %}
|
|
{%- if ironic_services['ironic-conductor']['group'] in group_names %}
|
|
{%- set package_list = package_list + ironic_conductor_distro_packages %}
|
|
{%- if ironic_standalone | bool %}
|
|
{%- set package_list = package_list + ironic_conductor_standalone_distro_packages %}
|
|
{%- endif %}
|
|
{%- endif %}
|
|
{{- package_list -}}
|
|
|
|
filtered_ironic_services: |-
|
|
{% set services = [] %}
|
|
{% for key, value in ironic_services.items() %}
|
|
{% if (value['group'] in group_names) and
|
|
(('service_en' not in value) or
|
|
('service_en' in value and value['service_en'])) %}
|
|
{% set _ = value.update({'service_key': key}) %}
|
|
{% set _ = services.append(value) %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{{ services }}
|
|
|
|
filtered_ironic_drivers: |-
|
|
{% set concat_drivers = [] %}
|
|
{% for driver in ironic_drivers_enabled %}
|
|
{% if driver in ironic_driver_types.keys() %}
|
|
{% set _ = concat_drivers.append(ironic_driver_types[driver]) %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{{ concat_drivers }}
|