ea9b1577ad
Ceilometer-*.json does not apply permissions at kolla_logs/ceilometer as other roles do at config.json. This is causing ceilometer-central to keep restarting due cannot read/write to ceilometer-polling.log file. Change-Id: I865bf01d6c3d87f1a2cf31976ca9e46bcbcad744 Closes-Bug: #1671020
35 lines
1.2 KiB
Django/Jinja
35 lines
1.2 KiB
Django/Jinja
{% set apache_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set apache_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{% set apache_file = '000-default.conf' if kolla_base_distro in ['ubuntu', 'debian'] else 'ceilometer-api.conf' %}
|
|
{
|
|
"command": "/usr/sbin/{{ apache_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/ceilometer.conf",
|
|
"dest": "/etc/ceilometer/ceilometer.conf",
|
|
"owner": "ceilometer",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-ceilometer-api.conf",
|
|
"dest": "/etc/{{ apache_dir }}/{{ apache_file }}",
|
|
"owner": "ceilometer",
|
|
"perm": "0644"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/policy.json",
|
|
"dest": "/etc/ceilometer/policy.json",
|
|
"owner": "ceilometer",
|
|
"perm": "0600",
|
|
"optional": true
|
|
}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/ceilometer",
|
|
"owner": "ceilometer:ceilometer",
|
|
"recurse": true
|
|
}
|
|
]
|
|
}
|