Fix distro install on openSUSE

With Train (current master) openSUSE is switching the openstack packages
to use Python 3. This means that we need to use the python3 module for
uwsgi.

Change-Id: I0fcb9d6a1df8893f3f4e6593a1614611e6712418
This commit is contained in:
Ralf Haferkamp 2019-09-13 16:54:49 +02:00 committed by Dirk Mueller
parent 2023c4987b
commit 113d85d23b
2 changed files with 3 additions and 4 deletions

View File

@ -6,7 +6,7 @@ gid = {{ keystone_system_group_name }}
{% if keystone_install_method == 'source' %}
virtualenv = /openstack/venvs/keystone-{{ keystone_venv_tag }}
{% endif %}
{% if keystone_install_method == 'distro' and (ansible_os_family | lower) == 'debian' %}
{% if keystone_install_method == 'distro' and (ansible_os_family | lower) in ['debian', 'suse' ] %}
plugin = python3
{% endif %}
wsgi-file = {{ keystone_bin }}/{{ item }}

View File

@ -29,13 +29,12 @@ keystone_devel_distro_packages:
- openldap2-devel
- systemd-devel
- pkg-config
- python-devel
- python3-devel
keystone_service_distro_packages:
- openstack-keystone
- python-systemd
- uwsgi
- uwsgi-python
- uwsgi-python3
keystone_apache_distro_packages:
- apache2