eb7e0f6fda
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
28 lines
793 B
YAML
28 lines
793 B
YAML
---
|
|
- name: Copying over ceph.conf for Zun
|
|
copy:
|
|
src: "{{ node_custom_config }}/zun/zun-compute/ceph.conf"
|
|
dest: "{{ node_config_directory }}/zun-compute/"
|
|
mode: "0660"
|
|
become: true
|
|
notify:
|
|
- Restart zun-compute container
|
|
|
|
- name: Copy over Ceph keyring files for zun-compute
|
|
copy:
|
|
src: "{{ node_custom_config }}/zun/zun-compute/{{ ceph_cinder_keyring }}"
|
|
dest: "{{ node_config_directory }}/zun-compute/"
|
|
mode: "0660"
|
|
become: true
|
|
when: external_ceph_cephx_enabled | bool
|
|
notify:
|
|
- Restart zun-compute container
|
|
|
|
- name: Ensuring config directory has correct owner and permission
|
|
become: true
|
|
file:
|
|
path: "{{ node_config_directory }}/zun-compute"
|
|
recurse: yes
|
|
owner: "{{ config_owner_user }}"
|
|
group: "{{ config_owner_group }}"
|