Skip to content

Commit

Permalink
libvirt-python is dropping python2 support
Browse files Browse the repository at this point in the history
Install libvirt-python on RHEL7.x python2
Install python3-libvirt on RHEL8 python3

use system libraries for the
python-virtualbmc pip install.

links:
https://gitlab.com/libvirt/libvirt-python/commit/b22e4f2441078aec048b9503fde2b45e78710ce1

Closes-Issue: #382
Change-Id: Ib3050cc739639ada40213186c0d49ae64214249a
  • Loading branch information
weshayutin committed Jan 23, 2020
1 parent a98b641 commit 0f7406a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infrared/common/roles/vbmc/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- "{{ (hostvars[vbmc_inventory_host].ansible_distribution_major_version|default('7') == '8') | ternary('platform-python-devel', 'python-devel') }}"
- "{{ (hostvars[vbmc_inventory_host].ansible_distribution_major_version|default('7') == '8') | ternary('python3-setuptools', 'python-setuptools') }}"
- ipmitool
- "{{ (hostvars[vbmc_inventory_host].ansible_distribution_major_version|default('7') == '8') | ternary('python3-libvirt', 'libvirt-python') }}"
state: latest
disable_gpg_check: yes

Expand Down Expand Up @@ -41,6 +42,7 @@
virtualenv: "{{ vbmc_virtualenv }}"
name: virtualbmc
version: "{{ vbmc_version }}"
virtualenv_site_packages: yes
environment:
PATH: "{{ vbmc_home }}/.local/bin:{{ ansible_env.PATH }}"
# to find 'virtualenv' command if available in user's ~/.local/bin, otherwise will find a system-wide one
Expand Down

0 comments on commit 0f7406a

Please sign in to comment.