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 - libffi-devel
- mock - mock
- openssl-devel - openssl-devel
- python-virtualenv
- rpm-build - rpm-build
- sqlite - sqlite
- redhat-rpm-config - redhat-rpm-config
- rpmdevtools - rpmdevtools
- libselinux-python - 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 - name: Create mock group
become: yes become: yes
group: name=mock state=present group: name=mock state=present

View File

@ -1,8 +1,14 @@
--- ---
- when: update_containers|bool - when: update_containers|bool
block: block:
- name: Install python-setuptools - name: check if python setup tool is installed
yum: 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 name: python-setuptools
state: latest state: latest
become: true become: true

View File

@ -20,12 +20,23 @@
version: '{{ tempest_conf_version }}' version: '{{ tempest_conf_version }}'
when: release != 'newton' 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 - name: Install packages required for create venv
package: name={{ item }} state=present package: name={{ item }} state=present
with_items: with_items:
- libffi-devel - libffi-devel
- openssl-devel - openssl-devel
- python-virtualenv
- gcc - gcc
- name: Set tempest init command - name: Set tempest init command