kolla-ansible/ansible/roles/gnocchi/templates/gnocchi-metricd.json.j2
Michal Nasiadka d43fd1864b External Ceph: Fix hardcoded gnocchi keyring
Change-Id: I507ebba82227e5f4567de6f5a0cb76f8ee46b2e3
Closes-Bug: #1862393
2020-02-11 08:59:07 +00:00

44 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"
}{% if gnocchi_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ gnocchi_policy_file }}",
"dest": "/etc/gnocchi/{{ gnocchi_policy_file }}",
"owner": "gnocchi",
"perm": "0600"
}{% endif %}{% 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_gnocchi_keyring }}",
"dest": "/etc/ceph/{{ ceph_gnocchi_keyring }}",
"owner": "gnocchi",
"perm": "0600"
}{% endif %}
],
"permissions": [
{
"path": "/var/lib/gnocchi",
"owner": "gnocchi:gnocchi"
},
{
"path": "/var/log/kolla/gnocchi",
"owner": "gnocchi:kolla"
},
{
"path": "/var/log/kolla/gnocchi/gnocchi-metricd.*",
"owner": "gnocchi:gnocchi"
}
]
}