Adding api-paste.ini
api-paste.ini was not being created on the server, which was causing Magnum to fail to run properly. This patch adds api-paste.ini to the list of configuration files that are placed post-installation. Change-Id: Ie1d710eae9f93ae89289043f8c627c3e3fd2d6ab
This commit is contained in:
parent
67053d0b7f
commit
0edf344a10
|
@ -42,6 +42,7 @@ magnum_service_adminurl: "{{ magnum_service_adminuri_proto }}://{{ internal_lb_v
|
|||
|
||||
magnum_config_overrides: {}
|
||||
magnum_policy_overrides: {}
|
||||
magnum_api_paste_ini_overrides: {}
|
||||
|
||||
# Name of the virtual env to deploy into
|
||||
magnum_venv_tag: untagged
|
||||
|
|
|
@ -31,6 +31,10 @@
|
|||
destination: "{{ magnum_etc_directory }}/policy.json"
|
||||
config_overrides: "{{ magnum_policy_overrides }}"
|
||||
config_type: "json"
|
||||
- source: "api-paste.ini.j2"
|
||||
destination: "{{ magnum_etc_directory }}/api-paste.ini"
|
||||
config_overrides: "{{ magnum_api_paste_ini_overrides }}"
|
||||
config_type: "ini"
|
||||
tags:
|
||||
- magnum-config-files
|
||||
- magnum-configuration
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
[pipeline:main]
|
||||
pipeline = cors healthcheck request_id authtoken api_v1
|
||||
|
||||
[app:api_v1]
|
||||
paste.app_factory = magnum.api.app:app_factory
|
||||
|
||||
[filter:authtoken]
|
||||
acl_public_routes = /, /v1
|
||||
paste.filter_factory = magnum.api.middleware.auth_token:AuthTokenMiddleware.factory
|
||||
|
||||
[filter:request_id]
|
||||
paste.filter_factory = oslo_middleware:RequestId.factory
|
||||
|
||||
[filter:cors]
|
||||
paste.filter_factory = oslo_middleware.cors:filter_factory
|
||||
oslo_config_project = magnum
|
||||
|
||||
[filter:healthcheck]
|
||||
paste.filter_factory = oslo_middleware:Healthcheck.factory
|
||||
backends = disable_by_file
|
||||
disable_by_file_path = /etc/magnum/healthcheck_disable
|
Loading…
Reference in New Issue