Merge pull request #1335 from batrick/mon-fs-cmd-1mon

send fs commands to one mon
pull/1350/head
Sébastien Han 2017-03-07 16:45:16 +01:00 committed by GitHub
commit b55a0702c2
2 changed files with 2 additions and 4 deletions

View File

@ -15,14 +15,11 @@
register: check_existing_cephfs
changed_when: false
failed_when: false
when: inventory_hostname == groups.mons|last
- name: create ceph filesystem
command: ceph --cluster {{ cluster }} fs new {{ cephfs }} {{ cephfs_metadata }} {{ cephfs_data }}
changed_when: false
when:
- inventory_hostname == groups.mons|last
- check_existing_cephfs.rc != 0
when: check_existing_cephfs.rc != 0
- name: allow multimds
command: ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it

View File

@ -15,6 +15,7 @@
- not mon_containerized_deployment
- groups[mds_group_name] is defined
- "{{ groups[mds_group_name]|length > 0 }}"
- inventory_hostname == groups.mons|last
- include: secure_cluster.yml
when: