2017-07-20 02:56:28 +08:00
|
|
|
---
|
|
|
|
- name: wait for mds socket to exist
|
|
|
|
command: "{{ docker_exec_cmd }} stat /var/run/ceph/{{ cluster }}-mds.{{ ansible_hostname }}.asok"
|
2017-09-08 21:57:58 +08:00
|
|
|
register: multi_mds_socket
|
2017-07-20 02:56:28 +08:00
|
|
|
retries: 5
|
|
|
|
delay: 15
|
2017-09-08 21:57:58 +08:00
|
|
|
until: multi_mds_socket.rc == 0
|
2017-07-20 02:56:28 +08:00
|
|
|
|
|
|
|
- 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
|