Keystone: consolidate uWSGI config, drop non-existing plugin
The Python 3 plugin no longer exists separately. Change-Id: Ie653db1078054fccbbfb60b88da024e4a46ee0b7
This commit is contained in:
parent
ffaf7a3baa
commit
358a989e64
@ -248,33 +248,25 @@
|
|||||||
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
|
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Place keystone public uwsgi config"
|
- name: "Place keystone uWSGI config"
|
||||||
template:
|
template:
|
||||||
src: keystone-public.ini.j2
|
src: uwsgi-keystone.ini.j2
|
||||||
dest: /etc/uwsgi/apps-available/keystone-public.ini
|
dest: /etc/uwsgi/apps-available/keystone-{{ item }}.ini
|
||||||
owner: "{{ nginx_user }}"
|
owner: "{{ nginx_user }}"
|
||||||
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
|
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
loop:
|
||||||
|
- public
|
||||||
|
- admin
|
||||||
|
|
||||||
- name: "Place keystone admin uwsgi config"
|
- name: "Enable keystone in uWSGI"
|
||||||
template:
|
|
||||||
src: keystone-admin.ini.j2
|
|
||||||
dest: /etc/uwsgi/apps-available/keystone-admin.ini
|
|
||||||
owner: "{{ nginx_user }}"
|
|
||||||
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: "Enable keystone-public in uwsgi"
|
|
||||||
file:
|
file:
|
||||||
src: "/etc/uwsgi/apps-available/keystone-public.ini"
|
src: "/etc/uwsgi/apps-available/keystone-{{ item }}.ini"
|
||||||
dest: "/etc/uwsgi/apps-enabled/keystone-public.ini"
|
dest: "/etc/uwsgi/apps-enabled/keystone-{{ item }}.ini"
|
||||||
state: link
|
|
||||||
|
|
||||||
- name: "Enable keystone-admin in uwsgi"
|
|
||||||
file:
|
|
||||||
src: "/etc/uwsgi/apps-available/keystone-admin.ini"
|
|
||||||
dest: "/etc/uwsgi/apps-enabled/keystone-admin.ini"
|
|
||||||
state: link
|
state: link
|
||||||
|
loop:
|
||||||
|
- public
|
||||||
|
- admin
|
||||||
|
|
||||||
- name: "Place nginx configuration for keystone"
|
- name: "Place nginx configuration for keystone"
|
||||||
# TODO(TheJulia): Refactor this so we use sites-enabled, but bifrost's
|
# TODO(TheJulia): Refactor this so we use sites-enabled, but bifrost's
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
# {{ ansible_managed }}
|
|
||||||
[uwsgi]
|
|
||||||
master = true
|
|
||||||
processes = 2
|
|
||||||
threads = 2
|
|
||||||
plugin = python3
|
|
||||||
no-orphans = true
|
|
||||||
chmod-socket = 660
|
|
||||||
virtualenv = {{ bifrost_venv_dir }}
|
|
||||||
|
|
||||||
socket = /run/uwsgi/keystone-public.socket
|
|
||||||
pidfile = /run/uwsgi/keystone-public.pid
|
|
||||||
|
|
||||||
name = keystone
|
|
||||||
uid = keystone
|
|
||||||
gid = {{ nginx_user }}
|
|
||||||
|
|
||||||
chdir = /var/www/keystone/
|
|
||||||
wsgi-file = /var/www/keystone/public
|
|
@ -3,17 +3,16 @@
|
|||||||
master = true
|
master = true
|
||||||
processes = 2
|
processes = 2
|
||||||
threads = 2
|
threads = 2
|
||||||
plugin = python3
|
|
||||||
no-orphans = true
|
no-orphans = true
|
||||||
chmod-socket = 660
|
chmod-socket = 660
|
||||||
virtualenv = {{ bifrost_venv_dir }}
|
virtualenv = {{ bifrost_venv_dir }}
|
||||||
|
|
||||||
socket = /run/uwsgi/keystone-admin.socket
|
socket = /run/uwsgi/keystone-{{ item }}.socket
|
||||||
pidfile = /run/uwsgi/keystone-admin.pid
|
pidfile = /run/uwsgi/keystone-{{ item }}.pid
|
||||||
|
|
||||||
name = keystone
|
name = keystone
|
||||||
uid = keystone
|
uid = keystone
|
||||||
gid = {{ nginx_user }}
|
gid = {{ nginx_user }}
|
||||||
|
|
||||||
chdir = /var/www/keystone/
|
chdir = /var/www/keystone/
|
||||||
wsgi-file = /var/www/keystone/admin
|
wsgi-file = /var/www/keystone/{{ item }}
|
Loading…
x
Reference in New Issue
Block a user