775d8019b6
Include custom policy.json files in service-api.json.j2 files Change-Id: Ic55bfc6f61131aa72c3497ce8b2282056bcc7f92 Partially-Implements: blueprint custom-policies
46 lines
1.4 KiB
Django/Jinja
46 lines
1.4 KiB
Django/Jinja
{
|
|
"command": "gnocchi-metricd --logfile /var/log/kolla/gnocchi/gnocchi-metricd.log",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/gnocchi.conf",
|
|
"dest": "/etc/gnocchi/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"
|
|
},
|
|
{
|
|
"path": "/var/log/kolla/gnocchi/gnocchi-metricd.*",
|
|
"owner": "gnocchi:gnocchi"
|
|
}
|
|
]
|
|
}
|