b316587dae
Cloudkitty has a default (built-in the container) metrics.yml file in the /etc/cloudkitty/metrics.yml files. We would like to be able to overwrite/customize these metrics configurations via kolla-ansible. Cloudkitty is able to use a custom metric file via "metrics_conf". Therefore, we are enabling this configuration via Kolla-ansible. Change-Id: Id9019298482c040be05f540e71dacfdf0bd77469 Signed-off-by: Rafael Weingärtner <rafael@apache.org>
31 lines
1.1 KiB
Django/Jinja
31 lines
1.1 KiB
Django/Jinja
{
|
|
"command": "cloudkitty-processor --config-file /etc/cloudkitty/cloudkitty.conf",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/cloudkitty.conf",
|
|
"dest": "/etc/cloudkitty/cloudkitty.conf",
|
|
"owner": "cloudkitty",
|
|
"perm": "0600"
|
|
}{% if cloudkitty_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ cloudkitty_policy_file }}",
|
|
"dest": "/etc/cloudkitty/{{ cloudkitty_policy_file }}",
|
|
"owner": "cloudkitty",
|
|
"perm": "0600"
|
|
}{% endif %}{% if cloudkitty_custom_metrics_used %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ cloudkitty_custom_metrics_yaml_file }}",
|
|
"dest": "/etc/cloudkitty/{{ cloudkitty_custom_metrics_yaml_file }}",
|
|
"owner": "cloudkitty",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/cloudkitty",
|
|
"owner": "cloudkitty:cloudkitty",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|