ff0f3bf5f88b2cfa02c09df2db82c52964587e40

Currently python venv build targets run within the first repo server when > 0 repo servers are found or localhost however this is sub-optimal especially in environments with mixed architectures and operating systems. This change sets the python venv build to a repo server target node of the same os family and cpu arch when one is available otherwise the build process is performed on the target host, instead of falling back to localhost, which in many cases is a bastion server. Change-Id: Ibc30bb90ab1ce1a074d8e93a2d2b36f4dcefb90c Signed-off-by: cloudnull <kevin@cloudnull.com>
Team and repository tags
OpenStack-Ansible python_venv_build
This Ansible role prepares a python venv for use in OpenStack-Ansible.
The role requires the following to be present prior to execution:
- virtualenv >= 1.10 (to support using the never-download option)
- pip >= 7.1 (to support using the constraints option) in the virtualenv once it has been created.
Use-cases
This role is built to cater to the following use-cases:
- # Execute a build against a build host, then serve the venvs from a web
-
server.
- # Execute a build against the first host in a group, then serving the
-
venvs from the deployment host.
References
- Documentation for the project can be found at:
-
https://docs.openstack.org/openstack-ansible-python_venv_build/latest/
- The project home is at:
- Release notes for the project can be found at:
-
https://docs.openstack.org/releasenotes/ansible-role-python_venv_build/
Description
Languages
Python
72.5%
Shell
27.5%