/
aodh-api.json.j2
32 lines (32 loc) · 1.06 KB
/
aodh-api.json.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% set aodh_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set aodh_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
"command": "{{ aodh_cmd }} -DFOREGROUND",
"config_files": [
{
"source": "{{ container_config_directory }}/aodh.conf",
"dest": "/etc/aodh/aodh.conf",
"owner": "aodh",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/wsgi-aodh.conf",
"dest": "/etc/{{ aodh_dir }}/wsgi-aodh.conf",
"owner": "root",
"perm": "0600"
}{% if aodh_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ aodh_policy_file }}",
"dest": "/etc/aodh/{{ aodh_policy_file }}",
"owner": "aodh",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/log/kolla/aodh",
"owner": "aodh:kolla",
"recurse": true
}
]
}