Ensure that pip lock down happens before other dependencies

The pip_install role is depended on by a lot of other roles, and
therefore sometimes gets processed prior to the pip_lock_down
role resulting in the pip, setuptools and wheels packages being
installed from a source other than the repo server once the repo
server is available. This is not the intended behaviour - the
repo server should always be a the primary source once it's
available.

This patch ensures that the pip_lock_down role is applied before
all the other dependent roles to ensure that the expected
behaviour is followed.

Change-Id: I1ea66b752092c95e7211ca903c806e9b14e448ff
This commit is contained in:
Jesse Pretorius 2016-03-31 13:59:50 +01:00 committed by Jesse Pretorius (odyssey4me)
parent b3f1225375
commit 5d3d9e7baa
1 changed files with 6 additions and 3 deletions

View File

@ -30,11 +30,14 @@ galaxy_info:
- development
- openstack
dependencies:
- role: pip_lock_down
when:
- not glance_developer_mode | bool
- role: pip_install
when:
- glance_developer_mode | bool
- role: apt_package_pinning
when:
- ansible_pkg_mgr == 'apt'
- galera_client
- openstack_openrc
- role: pip_lock_down
when:
- not glance_developer_mode | bool