Execution
Date
15 Dec 2025 10:19:13 +0000
Duration
00:23:12.82
Controller
aio1.openstack.local
User
root
Versions
Ansible
2.18.6
ara
1.7.4 / 1.7.4
Python
3.12.3
Summary
9
Hosts
618
Tasks
960
Results
108
Plays
456
Files
0
Records
File: /home/zuul/src/opendev.org/openstack/ansible-role-python_venv_build/defaults/main.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | --- # Copyright 2018, 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. # # Required variables # # The path where venvs are extracted to # on the target host during an install, for example: # venv_install_destination_path: "/openstack/venvs/myvenv" # # Optional variables # # Select the tooling which will be used for package installation # Valid options: pip, uv venv_install_tool: pip # Distribution packages which must be installed # on all hosts when building python wheels. venv_build_base_distro_package_list: "{{ _venv_build_base_distro_package_list }}" venv_install_base_distro_package_list: "{{ _venv_install_base_distro_package_list }}" # Distribution packages which must be installed # on the host for the purpose of building the # python wheels. venv_build_distro_package_list: [] # Distribution packages which must be installed # on the host when installing the venv. venv_install_distro_package_list: [] # Set the package install state for packages # Options are 'present' and 'latest' venv_distro_package_state: "latest" venv_pip_package_state: "latest" # The time in seconds that the distribution package # cache is valid for. This is only used by the apt # package manager. venv_distro_cache_valid_time: 600 # Default python packages which will be installed # into every venv. venv_default_pip_packages: [] # Python packages which must be installed # into the venv. venv_pip_packages: [] # Don't use the site-wide PIP configuration file when # upgrading PIP (some operating systems have issued # with upgrades w/ extra-index-urls) # ref: https://github.com/pypa/pip/issues/4195 venv_pip_upgrade_noconf: false # A list of constraints to be applied when building # or installing python packages. venv_build_constraints: [] # A list of pip constraints to be applied as global # constraints ahead of the list in venv_build_constraints. # This is useful for global pins across all venvs. venv_build_global_constraints: [] # Arguments to pass to pip when building the wheels venv_pip_build_args: "" # Environemnt to be set for building the wheels venv_pip_build_env: {} # Default arguments to pass to pip when installing into # the venv. venv_default_pip_install_args: >- {%- if (groups[venv_build_group] is defined) and (groups[venv_build_group] | length > 0) %} {%- if (venv_wheel_build_enable | bool) %} --find-links {{ openstack_repo_url | default('http://localhost') }}/os-releases/{{ openstack_release | default('master') }}/{{ _venv_build_dist_arch }}/wheels/ {%- endif %} --trusted-host {{ (openstack_repo_url | default('http://localhost')) | urlsplit('hostname') -}} {%- endif %} # Arguments to pass to pip when installing into the venv venv_pip_install_args: "" # Environemnt to be set for building the wheels venv_pip_install_env: REQUESTS_CA_BUNDLE: "{{ _venv_install_ca_bundle_path }}" # Some python packages have C bindings which tend to be very # particular about the version of their underlying shared libraries. # To ensure things run smoothly for stable releases, we opt to # use the distro packages for these python packages and symlink the # appropriate python library files and their bindings into the venv. # This variable should contain the list of packages installed which # should be symlinked into the venv. venv_packages_to_symlink: [] # The python executable to use for creating the venv venv_python_executable: "python3" # Enable the recreation of the venv from scratch. # This is useful if you think the venv may be corrupted # or if you have changed options which means that packages # should be removed from the venv. # Under normal circumstances, the installs will be done # into the existing venv over the top of any previously # installed packages. venv_rebuild: false # Enable the recreation of the pre-built wheels. # This is useful if wheels build has been interrupted or # previously failed because of connectivity or other issues. venv_wheels_rebuild: false # Enable/disable the build of python wheels # If the package concerned is built from a tarball, rather # than from a git source or pypi, then this may be best to # set to false. venv_wheel_build_enable: "{{ (venv_build_group in groups and groups[venv_build_group] | length > 0) }}" # Set the name of the ansible group, that will be used # to identify suitable host to build wheels on venv_build_group: repo_all # Set the host where the wheels will be built. # If this host is not the same as the target host, then # python wheels will be built in order to speed up the # subsequent venv builds on this host and others. When # this is the same as the target host, then we will not # bother building wheels. venv_build_host: "{{ venv_build_targets[_venv_build_dist_arch] }}" # The owner of directories and files held on the build host. # venv_build_host_user_name: "root" # venv_build_host_group_name: "root" # The path for the wheel build venv. # This is the path where a venv will be created on the # build host for the purpose of building the wheels. venv_build_host_venv_path: "/openstack/venvs/wheel-builder-{{ venv_python_executable }}" # The path where the requirements/constraints are stored # on the build host in order to ensure the build process # is idempotent. venv_build_host_requirements_path: >- /var/www/repo/os-releases/{{ openstack_release | default('master') }}/{{ _venv_build_dist_arch }}/requirements # The path where the wheels are cached on the build host # for speeding up the build process. venv_build_host_wheel_path: >- /var/www/repo/os-releases/{{ openstack_release | default('master') }}/{{ _venv_build_dist_arch }}/wheels # The facts to set when the venv changes during a # build, or the installation of a venv. # Eg: # set_facts_when_changed: # - section: glance # option: venv_tag # value: "{{ glance_venv_tag }}" venv_facts_when_changed: [] # The INI file name to use for the fact setting. venv_facts_dest: "openstack_ansible" |