mirror of https://github.com/ceph/ceph-ansible.git
distribute rbd bootstrap key if available
Signed-off-by: Jason Dillaman <dillaman@redhat.com>pull/1625/head
parent
1ac0969c28
commit
70c2b934ca
|
@ -17,3 +17,4 @@
|
|||
- /var/lib/ceph/bootstrap-rgw
|
||||
- /var/lib/ceph/bootstrap-mds
|
||||
- /var/lib/ceph/bootstrap-osd
|
||||
- /var/lib/ceph/bootstrap-rbd
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
---
|
||||
- name: register rbd bootstrap key
|
||||
set_fact:
|
||||
bootstrap_rbd_keyring: "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
||||
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
|
||||
|
||||
- name: set config and keys paths
|
||||
set_fact:
|
||||
ceph_config_keys:
|
||||
|
@ -9,6 +14,7 @@
|
|||
- /var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring
|
||||
- "{{ bootstrap_rbd_keyring | default([]) }}"
|
||||
|
||||
- name: stat for ceph config and keys
|
||||
stat:
|
||||
|
|
|
@ -11,3 +11,4 @@
|
|||
- /var/lib/ceph/bootstrap-osd
|
||||
- /var/lib/ceph/bootstrap-mds
|
||||
- /var/lib/ceph/bootstrap-rgw
|
||||
- /var/lib/ceph/bootstrap-rbd
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
---
|
||||
- name: register rbd bootstrap key
|
||||
set_fact:
|
||||
bootstrap_rbd_keyring: "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
||||
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
|
||||
|
||||
- name: set config and keys paths
|
||||
set_fact:
|
||||
ceph_config_keys:
|
||||
|
@ -8,6 +13,7 @@
|
|||
- /var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring
|
||||
- "{{ bootstrap_rbd_keyring | default([]) }}"
|
||||
|
||||
- name: add mgr keys to config and keys paths
|
||||
set_fact:
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
with_items:
|
||||
- "{{ ceph_keys.stdout_lines }}"
|
||||
|
||||
- name: register rbd bootstrap key
|
||||
set_fact:
|
||||
bootstrap_rbd_keyring: "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
||||
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
|
||||
|
||||
- name: copy keys to the ansible server
|
||||
fetch:
|
||||
src: "{{ item }}"
|
||||
|
@ -25,3 +30,4 @@
|
|||
- "/var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring"
|
||||
- "/var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring"
|
||||
- "/var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring"
|
||||
- "{{ bootstrap_rbd_keyring | default([]) }}"
|
||||
|
|
|
@ -114,6 +114,11 @@
|
|||
- "{{ ceph_keys.get('stdout_lines') | default([]) }}"
|
||||
when: cephx
|
||||
|
||||
- name: register rbd bootstrap key
|
||||
set_fact:
|
||||
bootstrap_rbd_keyring: "/var/lib/ceph/bootstrap-rbd/{{ cluster }}.keyring"
|
||||
when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
|
||||
|
||||
- name: copy keys to the ansible server
|
||||
fetch:
|
||||
src: "{{ item }}"
|
||||
|
@ -124,6 +129,7 @@
|
|||
- /var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring
|
||||
- /var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring
|
||||
- "{{ bootstrap_rbd_keyring | default([]) }}"
|
||||
when:
|
||||
- cephx
|
||||
- "{{ inventory_hostname == groups[mon_group_name] | last }}"
|
||||
|
|
Loading…
Reference in New Issue