Add ipa_build_upper_constraints_file variable

This variable allows to customise the upper constraints file used to
install packages inside the ipa-build-dib virtual environment. This can
be used when we need a newer version of diskimage-builder than the one
available in upper constraints for the current release.

Change-Id: Idbe57e7edc3fae25153f5e24ad6b7847b1c4660c
This commit is contained in:
Pierre Riteau 2021-02-19 16:13:38 +01:00
parent d14aa37cd3
commit 56c1a886f5
6 changed files with 21 additions and 2 deletions

View File

@ -75,6 +75,10 @@ ipa_build_dib_git_elements: >-
# List of DIB packages to install. Default is none.
ipa_build_dib_packages: []
# Upper constraints file for installing packages in the virtual environment
# used for building IPA images. Default is {{ pip_upper_constraints_file }}.
ipa_build_upper_constraints_file: "{{ pip_upper_constraints_file }}"
###############################################################################
# Ironic Python Agent (IPA) images configuration.

View File

@ -29,7 +29,7 @@
vars:
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
os_images_package_state: latest
os_images_upper_constraints_file: "{{ pip_upper_constraints_file }}"
os_images_upper_constraints_file: "{{ ipa_build_upper_constraints_file }}"
os_images_cache: "{{ image_cache_path }}"
os_images_common: ""
os_images_list:

View File

@ -20,7 +20,7 @@
vars:
os_images_venv: "{{ virtualenv_path }}/ipa-build-dib"
os_images_package_state: latest
os_images_upper_constraints_file: "{{ pip_upper_constraints_file }}"
os_images_upper_constraints_file: "{{ ipa_build_upper_constraints_file }}"
os_images_cache: "{{ image_cache_path }}"
os_images_common: ""
os_images_list:

View File

@ -84,6 +84,10 @@ image build``.
and ``ipa_build_dib_git_elements_extra``.
``ipa_build_dib_packages``
List of DIB packages to install. Default is none.
``ipa_build_upper_constraints_file``
Upper constraints file for installing packages in the virtual environment
used for building IPA images. Default is ``{{ pip_upper_constraints_file
}}``.
Example: Building IPA images locally
------------------------------------

View File

@ -61,6 +61,10 @@
# List of DIB packages to install. Default is none.
#ipa_build_dib_packages:
# Upper constraints file for installing packages in the virtual environment
# used for building IPA images. Default is {{ pip_upper_constraints_file }}.
#ipa_build_upper_constraints_file:
###############################################################################
# Ironic Python Agent (IPA) images configuration.

View File

@ -0,0 +1,7 @@
---
features:
- |
Adds the ``ipa_build_upper_constraints_file`` variable to select the upper
constraints file used to install diskimage-builder in the virtual
environment used for building IPA images. This allows you to install a
newer release than the one allowed by the default constraints.