Remove the python3-openclient and add a new task.

The openstack-16.2-deployment-tools-for-rhel-8x86_64-rpms provide
everything needed without python3-openstackclient package.
Add a new task to add extra packages.

Change-Id: I2bb554a0d42a2df5a804a00e4086c04cade17285
(cherry picked from commit 3a929ba224)
This commit is contained in:
Daniel Bengtsson 2022-09-13 10:48:29 +02:00 committed by Jesse Pretorius
parent 00ca125498
commit 4f9e87ee51

View File

@ -113,6 +113,12 @@ parameters:
type: json
tags:
- role_specific
BaseTripleoPackages:
default: []
description: List of packages to install.
type: comma_delimited_list
tags:
- role_specific
resources:
RoleParametersValue:
@ -128,6 +134,7 @@ resources:
upgrade_leapp_to_remove: UpgradeLeappToRemove
upgrade_leapp_to_install: UpgradeLeappToInstall
upgrade_init_command: UpgradeInitCommand
base_tripleo_packages: BaseTripleoPackages
- values: {get_param: [RoleParameters]}
- values:
DnfStreams: {get_param: DnfStreams}
@ -136,6 +143,7 @@ resources:
UpgradeLeappToRemove: {get_param: UpgradeLeappToRemove}
UpgradeLeappToInstall: {get_param: UpgradeLeappToInstall}
UpgradeInitCommand: {get_param: UpgradeInitCommand}
BaseTripleoPackages: {get_param: BaseTripleoPackages}
outputs:
role_data:
@ -295,10 +303,19 @@ outputs:
- os-net-config
- puppet-tripleo
- python3-heat-agent*
- python3-openstackclient
- rsync
state: present
when: ansible_facts['distribution_major_version'] is version('8', '==')
- name: Ensure TripleO prerequisite packages are installed and use role based heat variable to provide specific list of packages
vars:
base_tripleo_packages: {get_attr: [RoleParametersValue, value, 'base_tripleo_packages']}
package:
name:
"{{ base_tripleo_packages }}"
state: present
when:
- ansible_facts['distribution_major_version'] is version('8', '==')
- base_tripleo_packages|length > 0
- name: check if libvirt is installed
when: step|int == 0
command: /usr/bin/rpm -q libvirt-daemon