Jesse Pretorius 75eaeba3f0 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: I2173ecbee4f8d93a6c206ed944c721a996adfd86
2016-03-31 17:04:45 +00:00

42 lines
1.1 KiB
YAML

---
# Copyright 2016, Tata Consultancy Services
#
# 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.
galaxy_info:
author: rcbops
description: Installation and setup of Designate
company: OpenStack
license: Apache2
min_ansible_version: 1.9.0
platforms:
- name: Ubuntu
versions:
- trusty
categories:
- cloud
- python
- designate
- development
- openstack
dependencies:
- role: pip_lock_down
when:
- not designate_developer_mode | bool
- role: pip_install
when:
- designate_developer_mode | bool
- apt_package_pinning
- galera_client
- openstack_openrc