kolla-ansible/ansible/roles/zun/templates/zun-compute.json.j2
Buddhika Sanjeewa eb7e0f6fda Deploy Zun with Cinder Ceph support
Enables zun to access cinder volumes when cinder is configured to use
external ceph.
Copies ceph config file and ceph cinder keyring to /etc/ceph in
zun_compute container.

Closes-Bug: 1848934
Change-Id: Ie56868d5e9ed37a9274b8cbe65895f3634b895c8
2022-02-02 19:15:51 +00:00

43 lines
1.4 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 }}/{{ ceph_cinder_keyring }}",
"dest": "/etc/ceph/{{ ceph_cinder_keyring }}",
"owner": "zun",
"perm": "0600",
"optional": {{ (not zun_configure_for_cinder_ceph | bool) | string | lower }}
},
{
"source": "{{ container_config_directory }}/ceph.conf",
"dest": "/etc/ceph/ceph.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 %}
]
}