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'
|
when: ansible_distribution_major_version < '8'
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: Install dependencies for RHEL8
|
- name: Install dependencies for RHEL8 and RHEL9
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- gcc
|
- gcc
|
||||||
@ -36,6 +36,13 @@
|
|||||||
- python3-policycoreutils
|
- python3-policycoreutils
|
||||||
- python3-devel
|
- python3-devel
|
||||||
- python3-pip
|
- python3-pip
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
when: ansible_distribution_major_version >= '8'
|
||||||
|
|
||||||
|
- name: Install dependency virtualenv for RHEL8
|
||||||
|
yum:
|
||||||
|
name:
|
||||||
- python3-virtualenv
|
- python3-virtualenv
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
@ -98,6 +105,11 @@
|
|||||||
|
|
||||||
- name: Create browbeat virtualenv
|
- name: Create browbeat virtualenv
|
||||||
command: virtualenv {{ browbeat_venv }} creates={{ browbeat_venv }}
|
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
|
- name: Setup browbeat-venv CA certificate path
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
- name: Create rally virtualenv
|
- name: Create rally virtualenv
|
||||||
command: virtualenv --python=python3 {{ rally_venv }} creates={{ rally_venv }}
|
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
|
- name: Rally Add browbeat to Python path
|
||||||
shell: echo 'export PYTHONPATH=$PYTHONPATH:{{ browbeat_path }}' >> {{ rally_venv }}/bin/activate
|
shell: echo 'export PYTHONPATH=$PYTHONPATH:{{ browbeat_path }}' >> {{ rally_venv }}/bin/activate
|
||||||
|
@ -5,6 +5,11 @@
|
|||||||
|
|
||||||
- name: Create shaker virtualenv
|
- name: Create shaker virtualenv
|
||||||
command: virtualenv {{ shaker_venv }} creates={{ shaker_venv }}
|
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
|
- name: Setup shaker-venv CA certificate path
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user