kolla-ansible/ansible/roles/gnocchi/templates/gnocchi-metricd.json.j2
Dai Dang Van 3d9fd47e96 Support policy.yaml file [Final]
- Ceilometer
- Gnocchi
- Rally

This will copy only yaml or json policy file if they exist.

Change-Id: I59f3376ab9fb6fb83577465a6c9096764b9f19c0
Implements: blueprint support-custom-policy-yaml
Co-authored-By: Duong Ha-Quang <duonghq@vn.fujitsu.com>
2018-01-26 04:37:53 +00:00

45 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.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"
}
]
}