Merge "Don't install setuptools/pip/virtualenv from RPMs"

This commit is contained in:
Zuul 2018-10-29 22:47:13 +00:00 committed by Gerrit Code Review
commit ec56badbb9
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