summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j2
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2016-04-22 16:09:02 +0800
committerYifei Xue <xueyifei@huawei.com>2016-04-27 14:16:37 +0800
commit637b3a010deb88b7a892b9bddaf3973ff394a420 (patch)
treed03cf4e18a3496fd85780506eeaed1efe65834f9 /deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j2
parent2bc92249007147f811fdf7c7d282b20bed1d69ec (diff)
Add Aodh support for Compass
JIRA: COMPASS-374 Change-Id: I923f66b5ab42a0b30d0f91701873d36f8e5147ba Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j2')
-rw-r--r--deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j222
1 files changed, 22 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j2 b/deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j2
new file mode 100644
index 00000000..151789c4
--- /dev/null
+++ b/deploy/adapters/ansible/roles/aodh/templates/api_paste.ini.j2
@@ -0,0 +1,22 @@
+# aodh API WSGI Pipeline
+# Define the filters that make up the pipeline for processing WSGI requests
+# Note: This pipeline is PasteDeploy's term rather than aodh's pipeline
+# used for processing samples
+
+# Remove authtoken from the pipeline if you don't want to use keystone authentication
+[pipeline:main]
+pipeline = cors request_id authtoken api-server
+
+[app:api-server]
+paste.app_factory = aodh.api.app:app_factory
+
+[filter:authtoken]
+paste.filter_factory = keystonemiddleware.auth_token:filter_factory
+oslo_config_project = aodh
+
+[filter:request_id]
+paste.filter_factory = oslo_middleware:RequestId.factory
+
+[filter:cors]
+paste.filter_factory = oslo_middleware.cors:filter_factory
+oslo_config_project = aodh