kolla-ansible/ansible/roles/gnocchi/templates/gnocchi-statsd.json.j2
zhubingbing ba1eb03565 Fix gnocchi upgrade permission issue
Change-Id: If22b6cf9fa3ce9f1c18e4c9a71c637e96e7c2347
Partial-Bug: #1631503
2016-10-18 12:31:07 +08:00

39 lines
1.1 KiB
Django/Jinja

{
"command": "gnocchi-statsd --logfile /var/log/kolla/gnocchi/gnocchi-statsd.log",
"config_files": [
{
"source": "{{ container_config_directory }}/gnocchi.conf",
"dest": "/etc/gnocchi/gnocchi.conf",
"owner": "gnocchi",
"perm": "0600"
}{% 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-statsd.*",
"owner": "gnocchi:gnocchi"
}
]
}