
When an Apache + mod_wsgi configuration is not selected, configure the two Keystone services with uWSGI service profiles. Two arbitrary ports are selected for uWSGI to listen on, so that it may be proxied for by a dedicated web server. This is in preparation for laying down Nginx in a future patch. Notify events are updated to restart the Keystone uWSGI services where Keystone's configuration is modified only. Because federation concerns will be isolated within the dedicated web server, changes to federation configuration of Shiboleth do not trigger restarts of uWSGI. Similarly, SSL certificate changes do not trigger restarts. Change-Id: I99e16a999c496e68fb25fa2630d9b211c9755ea4 Related: blueprint keystone-uwsgi
26 lines
732 B
Django/Jinja
26 lines
732 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
|
Description=OpenStack Keystone service
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ system_user }}
|
|
Group={{ system_group }}
|
|
|
|
{% if program_override is defined %}
|
|
ExecStart={{ program_override }} --ini /etc/uwsgi/{{ program_name }}.ini --logto /var/log/keystone/{{ program_name }}.log {{ program_config_options|default('') }}
|
|
{% else %}
|
|
ExecStart={{ keystone_bin }}/uwsgi --ini /etc/uwsgi/{{ program_name }}.ini --logto /var/log/keystone/{{ program_name }}.log {{ program_config_options|default('') }}
|
|
{% endif %}
|
|
|
|
# Give a reasonable amount of time for the server to start up/shut down
|
|
TimeoutSec=300
|
|
Restart=on-failure
|
|
RestartSec=150
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|