mirror of https://github.com/ceph/ceph-ansible.git
ceph-mds: enable application pool
We now enable the application type 'cephfs' for each cephfs pools we
create.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1590275
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit a629408967
)
pull/2840/head
parent
6431976e22
commit
d6f265f51d
|
@ -20,6 +20,17 @@
|
|||
when:
|
||||
- check_existing_cephfs.rc != 0
|
||||
|
||||
- name: assign application to cephfs pools
|
||||
command: "{{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} osd pool application enable {{ item }} {{ cephfs }}"
|
||||
with_items:
|
||||
- "{{ cephfs_data }}"
|
||||
- "{{ cephfs_metadata }}"
|
||||
changed_when: false
|
||||
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||
when:
|
||||
- check_existing_cephfs.rc != 0
|
||||
- ceph_release_num[ceph_release] >= ceph_release_num['luminous']
|
||||
|
||||
- name: allow multimds
|
||||
command: "{{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it"
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in New Issue