Merge "Fix uwsgi configuration when using venv"

This commit is contained in:
Zuul
2018-07-09 14:18:52 +00:00
committed by Gerrit Code Review
3 changed files with 7 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
- name: "If VENV is set in the environment, enable installation into venv"
set_fact:
enable_venv: true
uwsgi_venv: "{{ bifrost_venv_env.get('VIRTUAL_ENV', '') }}"
when: lookup('env', 'VENV') | length > 0
- name: "Get uwsgi install location"

View File

@@ -6,6 +6,9 @@ threads = 2
plugin = python
no-orphans = true
chmod-socket = 660
{% if uwsgi_venv is defined and uwsgi_venv | length > 0 %}
virtualenv = {{ uwsgi_venv }}
{% endif %}
socket = /run/uwsgi/keystone-admin.socket
pidfile = /run/uwsgi/keystone-admin.pid

View File

@@ -6,6 +6,9 @@ threads = 2
plugin = python
no-orphans = true
chmod-socket = 660
{% if uwsgi_venv is defined and uwsgi_venv | length > 0 %}
virtualenv = {{ uwsgi_venv }}
{% endif %}
socket = /run/uwsgi/keystone-public.socket
pidfile = /run/uwsgi/keystone-public.pid