mirror of https://github.com/ceph/ceph-ansible.git
parent
cdee9f0119
commit
26cd62b4e6
|
@ -8,7 +8,6 @@
|
|||
- /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-rbd-mirror/{{ cluster }}.keyring
|
||||
|
||||
- name: stat for ceph config and keys
|
||||
stat:
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
- name: copy rbd-mirror bootstrap key
|
||||
copy:
|
||||
src: "{{ fetch_directory }}/{{ fsid }}/var/lib/ceph/bootstrap-rbd-mirror/{{ cluster }}.keyring"
|
||||
dest: "/var/lib/ceph/bootstrap-rbd-mirror/{{ cluster }}.keyring"
|
||||
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' }}"
|
||||
mode: "{{ ceph_keyring_permissions }}"
|
||||
|
|
|
@ -9,13 +9,7 @@
|
|||
- package-install
|
||||
|
||||
- name: create rbd-mirror keyring
|
||||
command: >
|
||||
ceph --cluster {{ cluster }}
|
||||
--name client.bootstrap-rbd-mirror
|
||||
--keyring /var/lib/ceph/bootstrap-rbd-mirror/{{ cluster }}.keyring
|
||||
auth get-or-create client.rbd-mirror.{{ ansible_hostname }}
|
||||
mon 'profile rbd' osd 'profile rbd'
|
||||
-o /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}.keyring
|
||||
command: ceph --cluster {{ cluster }} --name client.bootstrap-rbd --keyring /var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring auth get-or-create client.rbd-mirror.{{ ansible_hostname }} mon 'profile rbd' osd 'profile rbd' -o /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}.keyring
|
||||
args:
|
||||
creates: /etc/ceph/{{ cluster }}.client.rbd-mirror.{{ ansible_hostname }}.keyring
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in New Issue