Add template for cinder wsgi
This patch adds template for cinder wsgi app.
Fixed actually passing SSL settings to the following sites:
* gnochi
* manila
* panko
Change-Id: I4903b2e63e8c729beee5248441d8ad4ee8f3a2da
diff --git a/apache/server/site/cinder.yml b/apache/server/site/cinder.yml
new file mode 100644
index 0000000..7338b6e
--- /dev/null
+++ b/apache/server/site/cinder.yml
@@ -0,0 +1,42 @@
+parameters:
+ _param:
+ apache_cinder_ssl:
+ enabled: false
+ apache_cinder_api_address: 0.0.0.0
+ apache_cinder_api_host: ${linux:network:fqdn}
+ cinder:
+ server:
+ service_name: apache2
+ apache:
+ server:
+ enabled: true
+ default_mpm: event
+ site:
+ cinder:
+ enabled: false
+ available: true
+ type: wsgi
+ name: cinder
+ ssl: ${_param:apache_cinder_ssl}
+ wsgi:
+ daemon_process: cinder-wsgi
+ processes: 5
+ threads: 1
+ user: cinder
+ group: cinder
+ display_name: '%{GROUP}'
+ script_alias: '/ /usr/bin/cinder-wsgi'
+ application_group: '%{GLOBAL}'
+ authorization: 'On'
+ host:
+ address: ${_param:apache_cinder_api_address}
+ name: ${_param:apache_cinder_api_host}
+ port: 8776
+ log:
+ custom:
+ format: >-
+ %v:%p %{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %D %O \"%{Referer}i\" \"%{User-Agent}i\"
+ error:
+ enabled: true
+ format: '%M'
+ file: '/var/log/apache2/cinder_error.log'
diff --git a/apache/server/site/gnocchi.yml b/apache/server/site/gnocchi.yml
index f9f6cc8..a3d6def 100644
--- a/apache/server/site/gnocchi.yml
+++ b/apache/server/site/gnocchi.yml
@@ -14,6 +14,7 @@
available: true
type: wsgi
name: gnocchi
+ ssl: ${_param:apache_gnocchi_ssl}
host:
name: ${_param:apache_gnocchi_api_host}
address: ${_param:apache_gnocchi_api_address}
diff --git a/apache/server/site/manila.yml b/apache/server/site/manila.yml
index 2e32e00..2161882 100644
--- a/apache/server/site/manila.yml
+++ b/apache/server/site/manila.yml
@@ -17,6 +17,7 @@
available: true
type: wsgi
name: manila
+ ssl: ${_param:apache_manila_ssl}
wsgi:
daemon_process: manila-api
threads: 2
diff --git a/apache/server/site/panko.yml b/apache/server/site/panko.yml
index 8e4854d..d052c37 100644
--- a/apache/server/site/panko.yml
+++ b/apache/server/site/panko.yml
@@ -1,5 +1,7 @@
parameters:
_param:
+ apache_panko_ssl:
+ enabled: false
panko_api_workers: 2
apache_panko_api_host: ${linux:network:fqdn}
apache_panko_api_address: ${_param:single_address}
@@ -12,6 +14,7 @@
available: true
type: wsgi
name: panko
+ ssl: ${_param:apache_panko_ssl}
host:
name: ${_param:apache_panko_api_host}
address: ${_param:apache_panko_api_address}