Use py3 for CentOS
Unfortunatelly CentOS 7 do not have libvirt library for py3, so instead of symlinking them, we have to install devel package and build inside venv. Change-Id: I5a2fc38e86debfb9a73394552b79f83e56dd1231
This commit is contained in:
parent
cf4edae90f
commit
4f8966a231
|
@ -74,6 +74,7 @@ masakari_pip_packages:
|
|||
masakari_monitor_pip_packages:
|
||||
- masakari-monitors
|
||||
- systemd-python
|
||||
- "{{ (ansible_os_family | lower == 'redhat' and ansible_distribution_major_version|int <= 7) | ternary('libvirt-python', '') }}"
|
||||
|
||||
## Tunable overrides
|
||||
masakari_api_paste_ini_overrides: {}
|
||||
|
|
|
@ -24,8 +24,12 @@ masakari_devel_distro_packages:
|
|||
- systemd-devel
|
||||
|
||||
masakari_monitor_distro_packages:
|
||||
- libvirt-python
|
||||
- "{{ (ansible_distribution_major_version|int <= 7) | ternary('libvirt-devel', 'python3-libvirt') }}"
|
||||
- systemd-devel
|
||||
|
||||
masakari_monitor_packages_to_symlink:
|
||||
- libvirt-python
|
||||
masakari_monitor_packages_to_symlink: |-
|
||||
{% set packages = [] %}
|
||||
{% if ansible_distribution_major_version|int > 7 %}
|
||||
{% set _ = packages.extend(['python3-libvirt']) %}
|
||||
{% endif %}
|
||||
{{ packages }}
|
||||
|
|
Loading…
Reference in New Issue