mirror of https://github.com/ceph/ceph-ansible.git
ceph-mds: Enable multimds under docker
This is under the MDS role instead of the mon role because that role does not create the filesystem under docker. Signed-off-by: Douglas Fuller <dfuller@redhat.com>pull/1695/head
parent
ff8bb3d1d7
commit
aab3318802
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- name: wait for mds socket to exist
|
||||
command: "{{ docker_exec_cmd }} stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_hostname }}.asok"
|
||||
register: mds_socket
|
||||
retries: 5
|
||||
delay: 15
|
||||
until: mds_socket.rc == 0
|
||||
|
||||
- name: enable multimds if requested when mon is containerized
|
||||
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it"
|
||||
changed_when: false
|
||||
when:
|
||||
- containerized_deployment
|
||||
- mds_allow_multimds
|
||||
|
||||
- name: set max_mds when mon is containerized
|
||||
command: "{{ docker_exec_cmd }} ceph --cluster {{ cluster }} fs set {{ cephfs }} max_mds {{ mds_max_mds }}"
|
||||
changed_when: false
|
||||
when:
|
||||
- containerized_deployment
|
||||
- mds_allow_multimds
|
||||
- mds_max_mds > 1
|
|
@ -1,2 +1,7 @@
|
|||
---
|
||||
- name: set docker_exec_cmd fact
|
||||
set_fact:
|
||||
docker_exec_cmd: "docker exec ceph-mds-{{ ansible_hostname }}"
|
||||
|
||||
- include: start_docker_mds.yml
|
||||
- include: enable_multimds.yml
|
||||
|
|
Loading…
Reference in New Issue