eab66ab02e
Deploys the Monasca Log API with mod_wsgi + Apache. Change-Id: I28f0aa31c59b0b6917be2b125b5f8a0d7a7035af Partially-Implements: blueprint monasca-roles
33 lines
1.1 KiB
Django/Jinja
33 lines
1.1 KiB
Django/Jinja
{% set monasca_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set wsgi_conf_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "/usr/sbin/{{ monasca_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/log-api.conf",
|
|
"dest": "/etc/monasca/log-api.conf",
|
|
"owner": "monasca",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/log-api-paste.ini",
|
|
"dest": "/etc/monasca/log-api-paste.ini",
|
|
"owner": "monasca",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-log-api.conf",
|
|
"dest": "/etc/{{ wsgi_conf_dir }}/wsgi-config.conf",
|
|
"owner": "monasca",
|
|
"perm": "0600"
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/monasca",
|
|
"owner": "monasca:kolla",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|