34474decb1
Change the owner of the wsgi-zun.conf to zun instead of root. Change-Id: Ib0455210f3251965547ce3449fa4b72e28b32d11 Closes-Bug: #1792089
33 lines
1.0 KiB
Django/Jinja
33 lines
1.0 KiB
Django/Jinja
{% set zun_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set zun_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "{{ zun_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/zun.conf",
|
|
"dest": "/etc/zun/zun.conf",
|
|
"owner": "zun",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-zun.conf",
|
|
"dest": "/etc/{{ zun_dir }}/wsgi-zun.conf",
|
|
"owner": "zun",
|
|
"perm": "0600"
|
|
}{% if zun_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ zun_policy_file }}",
|
|
"dest": "/etc/zun/{{ zun_policy_file }}",
|
|
"owner": "zun",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/zun",
|
|
"owner": "zun:kolla",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|