Fix Browbeat installation with OSP17 on RHEL9
Browbeat installation is failing on OSP17 on RHEL9 because, 'python3-virtualenv' package is removed in RHEL9. So usage of 'virtualenv' for creating rally,browbeat,shaker virtual environments fails the browbeat installation. This patch fixes that issue. Change-Id: Iaa2d9c2ad0601197d1671219d9a63033c89622a2
This commit is contained in:
parent
eb40c9a82f
commit
3284550074
@ -24,7 +24,7 @@
|
||||
when: ansible_distribution_major_version < '8'
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Install dependencies for RHEL8
|
||||
- name: Install dependencies for RHEL8 and RHEL9
|
||||
yum:
|
||||
name:
|
||||
- gcc
|
||||
@ -36,6 +36,13 @@
|
||||
- python3-policycoreutils
|
||||
- python3-devel
|
||||
- python3-pip
|
||||
state: present
|
||||
become: true
|
||||
when: ansible_distribution_major_version >= '8'
|
||||
|
||||
- name: Install dependency virtualenv for RHEL8
|
||||
yum:
|
||||
name:
|
||||
- python3-virtualenv
|
||||
state: present
|
||||
become: true
|
||||
@ -98,6 +105,11 @@
|
||||
|
||||
- name: Create browbeat virtualenv
|
||||
command: virtualenv {{ browbeat_venv }} creates={{ browbeat_venv }}
|
||||
when: ansible_distribution_major_version <= '8'
|
||||
|
||||
- name: Create browbeat virtualenv
|
||||
command: python3 -m venv {{ browbeat_venv }} creates={{ browbeat_venv }}
|
||||
when: ansible_distribution_major_version == '9'
|
||||
|
||||
- name: Setup browbeat-venv CA certificate path
|
||||
lineinfile:
|
||||
|
@ -5,6 +5,11 @@
|
||||
|
||||
- name: Create rally virtualenv
|
||||
command: virtualenv --python=python3 {{ rally_venv }} creates={{ rally_venv }}
|
||||
when: ansible_distribution_major_version <= '8'
|
||||
|
||||
- name: Create rally virtualenv
|
||||
command: python3 -m venv {{ rally_venv }} creates={{ rally_venv }}
|
||||
when: ansible_distribution_major_version == '9'
|
||||
|
||||
- name: Rally Add browbeat to Python path
|
||||
shell: echo 'export PYTHONPATH=$PYTHONPATH:{{ browbeat_path }}' >> {{ rally_venv }}/bin/activate
|
||||
|
@ -5,6 +5,11 @@
|
||||
|
||||
- name: Create shaker virtualenv
|
||||
command: virtualenv {{ shaker_venv }} creates={{ shaker_venv }}
|
||||
when: ansible_distribution_major_version <= '8'
|
||||
|
||||
- name: Create shaker virtualenv
|
||||
command: python3 -m venv {{ shaker_venv }} creates={{ shaker_venv }}
|
||||
when: ansible_distribution_major_version == '9'
|
||||
|
||||
- name: Setup shaker-venv CA certificate path
|
||||
lineinfile:
|
||||
|
Loading…
Reference in New Issue
Block a user