4f8eb892c7
- Freezer - Gnocchi - Kuryr - Murano - Panko This will copy only yaml or json policy file if they exist. Change-Id: I5450839cb06c515f2be445883421f8f987ca834d Implements: blueprint support-custom-policy-yaml Co-authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com>
33 lines
1.1 KiB
Django/Jinja
33 lines
1.1 KiB
Django/Jinja
{% set apache_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set apache_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "{{ apache_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/freezer-api.conf",
|
|
"dest": "/etc/freezer/freezer.conf",
|
|
"owner": "freezer",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-freezer-api.conf",
|
|
"dest": "/etc/{{ apache_dir }}/wsgi-freezer.conf",
|
|
"owner": "freezer",
|
|
"perm": "0600"
|
|
}{% if freezer_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ freezer_policy_file }}",
|
|
"dest": "/etc/freezer/{{ freezer_policy_file }}",
|
|
"owner": "freezer",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/freezer",
|
|
"owner": "freezer:freezer",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|