kolla-ansible/ansible/roles/gnocchi/templates/gnocchi-metricd.json.j2
Jeffrey Zhang 65ebba8b1d Fix wsgi file path and log-file parameter
* use gnocchi-api script for wsgi based on this commit[0].
* logfile is deprecated. Use log-file instead[1].

[0] c8717e8b71
[1] https://github.com/gnocchixyz/gnocchi/blob/master/gnocchi/opts.py#L77,L82

Change-Id: I8fbe8425e43d82e0f9601ba6303dd7f24142a2e6
2017-07-17 10:02:28 +08:00

46 lines
1.4 KiB
Django/Jinja

{
"command": "gnocchi-metricd --log-file /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"
}
]
}