274291463e
Many of the templates use 600, remove unnecessary permission on these templates to bring them in line with the others. Change-Id: I30fe1b3822b9c7bb6ab98729fc519dc1d603db27
51 lines
1.6 KiB
Django/Jinja
51 lines
1.6 KiB
Django/Jinja
{% set gnocchi_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set gnocchi_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "{{ gnocchi_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/gnocchi.conf",
|
|
"dest": "/etc/gnocchi/gnocchi.conf",
|
|
"owner": "gnocchi",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-gnocchi.conf",
|
|
"dest": "/etc/{{ gnocchi_dir }}/wsgi-gnocchi.conf",
|
|
"owner": "gnocchi",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/policy.json",
|
|
"dest": "/etc/gnocchi/policy.json",
|
|
"owner": "gnocchi",
|
|
"perm": "0600",
|
|
"optional": true
|
|
}{% if gnocchi_backend_storage == 'ceph' %},
|
|
{
|
|
"source": "{{ container_config_directory }}/ceph.conf",
|
|
"dest": "/etc/ceph/ceph.conf",
|
|
"owner": "gnocchi",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/ceph.client.gnocchi.keyring",
|
|
"dest": "/etc/ceph/ceph.client.gnocchi.keyring",
|
|
"owner": "gnocchi",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/lib/gnocchi",
|
|
"owner": "gnocchi:gnocchi",
|
|
"recurse": true
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/gnocchi",
|
|
"owner": "gnocchi:kolla"
|
|
}
|
|
]
|
|
}
|