fdf2385f14
This patch is adding a feature for an option to copy different ceph configuration files and corresponding keyrings for cinder, glance, manila, gnocchi and nova services. This is especially useful when the deployment uses availability zones as below example. - Individual compute can read/write to individual ceph cluster in same AZ. - Cinder can write to several ceph clusters in several AZs. - Glance can use multistore and upload images to several ceph clusters in several AZs at once. Change-Id: Ie4d8ab5a3df748137835cae1c943b9180cd10eb1
43 lines
1.5 KiB
Django/Jinja
43 lines
1.5 KiB
Django/Jinja
{
|
|
"command": "zun-compute --config-file /etc/zun/zun.conf",
|
|
"config_files": [
|
|
{
|
|
"source": "{{ container_config_directory }}/zun.conf",
|
|
"dest": "/etc/zun/zun.conf",
|
|
"owner": "zun",
|
|
"perm": "0600"
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ zun_ceph_cluster }}.{{ ceph_cinder_keyring }}",
|
|
"dest": "/etc/ceph/{{ zun_ceph_cluster }}.{{ ceph_cinder_keyring }}",
|
|
"owner": "zun",
|
|
"perm": "0600",
|
|
"optional": {{ (not zun_configure_for_cinder_ceph | bool) | string | lower }}
|
|
},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ zun_ceph_cluster }}.conf",
|
|
"dest": "/etc/ceph/{{ zun_ceph_cluster }}.conf",
|
|
"owner": "zun",
|
|
"perm": "0600",
|
|
"optional": {{ (not zun_configure_for_cinder_ceph | bool) | string | lower }}
|
|
}{% if zun_policy_file is defined %},
|
|
{
|
|
"source": "{{ container_config_directory }}/{{ zun_policy_file }}",
|
|
"dest": "/etc/zun/{{ zun_policy_file }}",
|
|
"owner": "zun",
|
|
"perm": "0600"
|
|
}{% endif %}
|
|
],
|
|
"permissions": [
|
|
{
|
|
"path": "/var/log/kolla/zun",
|
|
"owner": "zun:kolla",
|
|
"recurse": true
|
|
}{% if zun_configure_for_cinder_ceph | bool %},
|
|
{
|
|
"path": "/var/lib/zun",
|
|
"owner": "zun:kolla"
|
|
}{% endif %}
|
|
]
|
|
}
|