Option to specify python version and use package instead of yum.
In rhel8 the python-tripleoclient version changes into python3- tripleoclient, so to avoid issues with the packages version a py_ver variable has been added to allow us make use of one version or the other. Also, do not depend on the yum command, as in rhel8 there is no importable yum module. We'll use the package task instead. Change-Id: I5edf7b63acaa4df15de5b3bacbc7b9cae1e99b5b
This commit is contained in:
parent
8f8f172a6f
commit
00ed89bc27
|
@ -242,3 +242,6 @@ roles_upgrade_order: '__undefined__'
|
|||
|
||||
# Packet loss threshold for a ping test
|
||||
loss_threshold: 1
|
||||
|
||||
# Python version used
|
||||
py_ver: 2
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
- block:
|
||||
- name: Ensure ansible-pacemaker module is present in CI.
|
||||
yum:
|
||||
package:
|
||||
name: ansible-pacemaker
|
||||
state: latest
|
||||
when: tripleo_ci|default(false)|bool
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
tags: overcloud_update_prepare_containers
|
||||
|
||||
- name: Ensure ansible-pacemaker module is present in CI.
|
||||
yum:
|
||||
package:
|
||||
name: ansible-pacemaker
|
||||
state: latest
|
||||
when: tripleo_ci|default(false)|bool
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
tags: overcloud_upgrade_prepare_containers
|
||||
|
||||
- name: Ensure ansible-pacemaker module is present in CI.
|
||||
yum:
|
||||
package:
|
||||
name: ansible-pacemaker
|
||||
state: latest
|
||||
when: tripleo_ci|default(false)|bool
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
sudo yum update -y \
|
||||
python-tripleoclient \
|
||||
python{{ py_ver }}-tripleoclient \
|
||||
openstack-tripleo-common \
|
||||
openstack-tripleo-heat-templates
|
||||
|
||||
|
|
Loading…
Reference in New Issue