kolla-ansible/ansible/roles/cloudkitty/templates/cloudkitty-api.json.j2
ZhongShengping 2fca630cdb Add WSGI support for cloudkitty-api
They dropped the cloudkitty-api command line[0], so we should add wsgi
support for cloudkitty-api.

[0]https://review.openstack.org/#/c/366043/

Change-Id: Ie34d4f2d5c303bbd7ac09a8ab9e8d9bdc763c57b
Closes-Bug: #1713879
2017-08-31 08:50:42 +08:00

34 lines
1.1 KiB
Django/Jinja

{% set cloudkitty_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set cloudkitty_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
"command": "{{ cloudkitty_cmd }} -DFOREGROUND",
"config_files": [
{
"source": "{{ container_config_directory }}/cloudkitty.conf",
"dest": "/etc/cloudkitty/cloudkitty.conf",
"owner": "cloudkitty",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/wsgi-cloudkitty.conf",
"dest": "/etc/{{ cloudkitty_dir }}/wsgi-cloudkitty.conf",
"owner": "cloudkitty",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/policy.json",
"dest": "/etc/cloudkitty/policy.json",
"owner": "cloudkitty",
"perm": "0600",
"optional": true
}
],
"permissions": [
{
"path": "/var/log/kolla/cloudkitty",
"owner": "cloudkitty:cloudkitty",
"recurse": true
}
]
}