775d8019b6
Include custom policy.json files in service-api.json.j2 files Change-Id: Ic55bfc6f61131aa72c3497ce8b2282056bcc7f92 Partially-Implements: blueprint custom-policies
27 lines
893 B
Django/Jinja
27 lines
893 B
Django/Jinja
{% 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"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/policy.json",
|
|
"dest": "/etc/aodh/policy.json",
|
|
"owner": "aodh",
|
|
"perm": "0600",
|
|
"optional": true
|
|
}
|
|
]
|
|
}
|