96318fed5a
Gnocchi previously lacked high availability. We consider a lack of HA in our a vast majority of operator oriented services to be a defective design choice. this change integrates gnocchi with ceph to resolve the the lack of HA. Closes-Bug: #1626623 Change-Id: I71c5137842cb48bc4af0e50a2952df5631d0d6df
39 lines
1.3 KiB
Django/Jinja
39 lines
1.3 KiB
Django/Jinja
{% set gnocchi_cmd = 'apache2' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd' %}
|
|
{% set gnocchi_dir = 'apache2/conf-enabled' if kolla_base_distro in ['ubuntu', 'debian'] else 'httpd/conf.d' %}
|
|
{
|
|
"command": "{{ gnocchi_cmd }} -DFOREGROUND",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/gnocchi.conf",
|
|
"dest": "/etc/gnocchi/gnocchi.conf",
|
|
"owner": "gnocchi",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/api-paste.ini",
|
|
"dest": "/etc/gnocchi/api-paste.ini",
|
|
"owner": "gnocchi",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/wsgi-gnocchi.conf",
|
|
"dest": "/etc/{{ gnocchi_dir }}/wsgi-gnocchi.conf",
|
|
"owner": "gnocchi",
|
|
"perm": "0644"
|
|
}{% 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 %}
|
|
|
|
]
|
|
}
|