Don't install setuptools/pip/virtualenv from RPMs

Openstack infra has them already installed and we are not supose to
install it, for example at fedora the exclude them explitcitly from the
dnf.conf

Change-Id: I3b276e159ff7534777219975995fc20c967d0e42
Store: https://tree.taiga.io/project/tripleo-ci-board/task/248?kanban-status=1447275
This commit is contained in:
Quique Llorente 2018-10-23 10:37:48 +02:00
parent c60c139547
commit 3588ffbb7b
3 changed files with 31 additions and 4 deletions

View File

@ -10,13 +10,23 @@
- libffi-devel
- mock
- openssl-devel
- python-virtualenv
- rpm-build
- sqlite
- redhat-rpm-config
- rpmdevtools
- libselinux-python
- name: Check if virtualenv is in the system
shell: command -v virtualenv >/dev/null 2>&1
register: virtualenv_exist
ignore_errors: yes
- when: virtualenv_exist.rc == 1
name: Install virtualenv
package:
name: python-virtualenv
state: present
- name: Create mock group
become: yes
group: name=mock state=present

View File

@ -1,8 +1,14 @@
---
- when: update_containers|bool
block:
- name: Install python-setuptools
yum:
- name: check if python setup tool is installed
shell: command -v easy-install >/dev/null 2>&1
register: easy_install_exists
ignore_errors: yes
- when: easy_install_exists.rc == 1
name: Install python setuptools
package:
name: python-setuptools
state: latest
become: true

View File

@ -20,12 +20,23 @@
version: '{{ tempest_conf_version }}'
when: release != 'newton'
- name: Check if virtualenv is in the system
shell: command -v virtualenv >/dev/null 2>&1
register: virtualenv_exist
ignore_errors: yes
- when: virtualenv_exist.rc == 1
name: Install virtualenv
package:
name: python-virtualenv
state: present
- name: Install packages required for create venv
package: name={{ item }} state=present
with_items:
- libffi-devel
- openssl-devel
- python-virtualenv
- gcc
- name: Set tempest init command