Ansible role to manage the building of python venvs
Go to file
Jesse Pretorius 5a31e77fb4 Add ability to symlink host python packages into venv
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 functionality is required for libvirt and ceph and is used
across multiple roles.

Change-Id: Ib5b7fa1d06abe1e1bb4f14aea7de4207b61aca88
2018-12-11 10:28:24 +00:00
defaults Add ability to symlink host python packages into venv 2018-12-11 10:28:24 +00:00
doc Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
handlers Revise the role to properly cater to use-cases 2018-05-04 18:03:59 +01:00
meta Add Bionic testing 2018-07-30 13:10:31 +00:00
releasenotes Update reno for stable/rocky 2018-08-10 16:44:00 +00:00
tasks Add ability to symlink host python packages into venv 2018-12-11 10:28:24 +00:00
tests Set container_name as host_var in test inventory 2018-10-20 15:28:29 -07:00
vars Add default distro packages for wheel builds 2018-10-31 10:35:20 +00:00
zuul.d switch documentation job to new PTI 2018-08-21 13:21:41 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-10-02 14:56:55 +00:00
.gitreview Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
bindep.txt Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
LICENSE Initial commit 2018-03-09 17:50:21 +00:00
README.rst Use the virtualenv's pip to build the wheels 2018-08-19 20:15:37 +01:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-09-29 04:57:35 +00:00
setup.cfg Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
setup.py Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
tox.ini fix tox python3 overrides 2018-09-26 18:41:31 -04:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-09-28 06:23:51 +00:00

Team and repository tags

image

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:

http://launchpad.net/openstack-ansible

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/ansible-role-python_venv_build/