kolla-ansible/ansible/roles/octavia/templates/octavia-api.json.j2
Michał Nasiadka a52cf61b22 octavia: Fix log directory permission
After WSGI implementation the permissions were not fixed.

Depends-On: https://review.opendev.org/c/openstack/kolla/+/783845

Change-Id: I908efe29dcd16c10b0bc88582d8dfb23ba573a35
2021-03-30 12:32:22 +00:00

49 lines
1.7 KiB
Django/Jinja

{% set apache_binary = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
{% set apache_conf_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
{
"command": "/usr/sbin/{{ apache_binary }} -DFOREGROUND",
"config_files": [
{
"source": "{{ container_config_directory }}/octavia.conf",
"dest": "/etc/octavia/octavia.conf",
"owner": "octavia",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/octavia-wsgi.conf",
"dest": "/etc/{{ apache_conf_dir }}/octavia-wsgi.conf",
"owner": "octavia",
"perm": "0600"
}{% if octavia_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ octavia_policy_file }}",
"dest": "/etc/octavia/{{ octavia_policy_file }}",
"owner": "octavia",
"perm": "0600"
}{% endif %}{% if octavia_enable_tls_backend | bool %},
{
"source": "{{ container_config_directory }}/octavia-cert.pem",
"dest": "/etc/octavia/certs/octavia-cert.pem",
"owner": "octavia",
"perm": "0600"
},
{
"source": "{{ container_config_directory }}/octavia-key.pem",
"dest": "/etc/octavia/certs/octavia-key.pem",
"owner": "octavia",
"perm": "0600"
}
{% endif %}],
"permissions": [
{
"path": "/var/log/kolla/octavia",
"owner": "octavia:kolla",
"recurse": true
},
{
"path": "/var/run/octavia",
"owner": "octavia:octavia"
}
]
}