diff --git a/templates/glance-uwsgi.ini.j2 b/templates/glance-uwsgi.ini.j2 index 11ef7d8a..70367c73 100644 --- a/templates/glance-uwsgi.ini.j2 +++ b/templates/glance-uwsgi.ini.j2 @@ -5,6 +5,9 @@ gid = {{ glance_system_group_name }} {% if glance_install_method == 'source' %} virtualenv = /openstack/venvs/glance-{{ glance_venv_tag }} {% endif %} +{% if glance_install_method == 'distro' and (ansible_os_family | lower) == 'debian' %} +plugin = python3 +{% endif %} wsgi-file = {{ glance_bin }}/{{ item.wsgi_name }} http-socket = {{ item.uwsgi_bind_address }}:{{ item.uwsgi_port }} diff --git a/vars/debian.yml b/vars/debian.yml index 8b308530..58b63df2 100644 --- a/vars/debian.yml +++ b/vars/debian.yml @@ -28,10 +28,9 @@ glance_devel_distro_packages: - libxml2-dev glance_service_distro_packages: - - glance - - glance-api + - python3-glance - uwsgi - - uwsgi-plugin-python + - uwsgi-plugin-python3 glance_oslomsg_amqp1_distro_packages: - libsasl2-modules