f867c471fb
Since this review[1], Qinling supports WSGI execution. From a production perspective, Qinling should be deployed using Apache and mod_wsgi. "api_worker" option is not needed anymore because processes will be handle by Apache mod_wsgi. Qinling Docker image review[2] has ben created. [1] https://review.opendev.org/661851 [2] https://review.opendev.org/666647 Change-Id: I9aaee4c2932f1e4ea9fe780a64e96a28fa6bccfb Story: 2005920 Task: 34181
33 lines
1.1 KiB
Django/Jinja
33 lines
1.1 KiB
Django/Jinja
{% set qinling_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set qinling_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "{{ qinling_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/qinling.conf",
|
|
"dest": "/etc/qinling/qinling.conf",
|
|
"owner": "qinling",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-qinling.conf",
|
|
"dest": "/etc/{{ qinling_dir }}/wsgi-qinling.conf",
|
|
"owner": "qinling",
|
|
"perm": "0600"
|
|
}{% if qinling_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ qinling_policy_file }}",
|
|
"dest": "/etc/qinling/{{ qinling_policy_file }}",
|
|
"owner": "qinling",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/qinling",
|
|
"owner": "qinling:qinling",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|