diff --git a/templates/mistral-uwsgi.ini.j2 b/templates/mistral-uwsgi.ini.j2 index 33b9417..0ea2f4e 100644 --- a/templates/mistral-uwsgi.ini.j2 +++ b/templates/mistral-uwsgi.ini.j2 @@ -6,6 +6,9 @@ gid = {{ mistral_system_group_name }} {% if mistral_install_method == 'source' %} virtualenv = /openstack/venvs/mistral-{{ mistral_venv_tag }} {% endif %} +{% if mistral_install_method == 'distro' and (ansible_os_family | lower) == 'debian' %} +plugin = python3 +{% endif %} wsgi-file = {{ mistral_bin }}/{{ item.wsgi_name }} http = {{ item.uwsgi_bind_address }}:{{ item.uwsgi_port }} @@ -23,4 +26,4 @@ logfile-chmod = 644 pidfile = /var/run/{{ item.service_name }}/{{ item.service_name }}.pid # Avoid filling up the logs with health check requests from haproxy. -route-user-agent = ^osa-haproxy-healthcheck$ donotlog: \ No newline at end of file +route-user-agent = ^osa-haproxy-healthcheck$ donotlog: diff --git a/vars/debian.yml b/vars/debian.yml index bf16f5c..aa783e3 100644 --- a/vars/debian.yml +++ b/vars/debian.yml @@ -21,9 +21,9 @@ mistral_distro_packages: - libpython2.7 mistral_service_distro_packages: - - mistral-api - - mistral-engine - - mistral-executor + - python3-mistral + - uwsgi + - uwsgi-plugin-python3 mistral_oslomsg_amqp1_distro_packages: - libsasl2-modules