2018-04-11 23:15:29 +08:00
|
|
|
---
|
|
|
|
- name: set_fact copy_admin_key - true when ceph_release_num[ceph_release] < ceph_release_num.luminous
|
|
|
|
set_fact:
|
|
|
|
copy_admin_key: True
|
|
|
|
when:
|
|
|
|
- ceph_release_num[ceph_release] < ceph_release_num.luminous
|
|
|
|
|
|
|
|
- name: copy ceph admin keyring when ceph_release_num[ceph_release] < ceph_release_num.luminous
|
|
|
|
copy:
|
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring"
|
|
|
|
dest: "/etc/ceph/"
|
|
|
|
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
2018-06-25 21:12:56 +08:00
|
|
|
mode: "{{ ceph_keyring_permissions }}"
|
2018-04-11 23:15:29 +08:00
|
|
|
when:
|
|
|
|
- cephx
|
|
|
|
- copy_admin_key
|
|
|
|
|
|
|
|
- name: copy rbd-mirror bootstrap key
|
|
|
|
copy:
|
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
|
|
|
dest: "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
|
|
|
owner: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
|
|
|
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}"
|
2018-06-25 21:12:56 +08:00
|
|
|
mode: "{{ ceph_keyring_permissions }}"
|
2018-04-11 23:15:29 +08:00
|
|
|
when:
|
|
|
|
- cephx
|
2018-06-25 21:12:56 +08:00
|
|
|
- ceph_release_num[ceph_release] >= ceph_release_num.luminous
|