Merge "move wsgi app/scriplets from stx-keystone to stx-upstream"
This commit is contained in:
commit
535ea69c7f
21
openstack/python-keystone/centos/files/public.py
Normal file
21
openstack/python-keystone/centos/files/public.py
Normal file
@ -0,0 +1,21 @@
|
||||
# Copyright (c) 2013-2017 Wind River Systems, Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
|
||||
from keystone.server import wsgi as wsgi_server
|
||||
|
||||
import sys
|
||||
sys.argv = sys.argv[:1]
|
||||
|
||||
application = wsgi_server.initialize_public_application()
|
@ -22,6 +22,7 @@ Source99: openstack-keystone.service
|
||||
Source100: keystone-all
|
||||
Source101: keystone-fernet-keys-rotate-active
|
||||
Source102: password-rules.conf
|
||||
Source103: public.py
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: openstack-macros
|
||||
@ -218,9 +219,8 @@ install -p -D -m 755 %{SOURCE101} %{buildroot}%{_bindir}/keystone-fernet-keys-ro
|
||||
# WRS: install password rules(readable only)
|
||||
install -p -D -m 440 %{SOURCE102} %{buildroot}%{_sysconfdir}/keystone/password-rules.conf
|
||||
|
||||
# WRS: install keystone public and admin gunicorn apps
|
||||
install -p -D -m 755 etc/admin.py %{buildroot}/%{_datarootdir}/keystone/admin.py
|
||||
install -p -D -m 755 etc/public.py %{buildroot}/%{_datarootdir}/keystone/public.py
|
||||
# WRS: install keystone public gunicorn app
|
||||
install -p -D -m 755 %{SOURCE103} %{buildroot}/%{_datarootdir}/keystone/public.py
|
||||
|
||||
# WRS: install openstack-keystone service script
|
||||
install -p -D -m 644 %{SOURCE99} %{buildroot}%{_unitdir}/openstack-keystone.service
|
||||
@ -292,7 +292,6 @@ exit 0
|
||||
|
||||
%files -n python-keystone
|
||||
%{_datarootdir}/keystone/public*.py*
|
||||
%{_datarootdir}/keystone/admin*.py*
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user