From: Sébastien Han Date: Mon, 10 Mar 2014 16:14:11 +0000 (+0100) Subject: Allow to disable MDS X-Git-Tag: v1.0.0~397^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F22%2Fhead;p=ceph-ansible.git Allow to disable MDS Even if MDS are not configured in site.yml the playbook has a dependancy on the ceph.conf template. This disables the mds section from the ceph.conf file. Closes: #21 Signed-off-by: Sébastien Han --- diff --git a/group_vars/all b/group_vars/all index 618e2df1f..838fafef8 100644 --- a/group_vars/all +++ b/group_vars/all @@ -9,6 +9,7 @@ redhat_distro: el6 # supported distros are el6, rhel6, f18, f19, opensuse12.2, s # Ceph options cephx: true +mds: false # disable mds configuration in ceph.conf fsid: 4a158d27-f750-41d5-9e7f-26ce4c9d2d45 # OSD options diff --git a/roles/common/templates/ceph.conf.j2 b/roles/common/templates/ceph.conf.j2 index 651c5523a..9d1ba8a07 100644 --- a/roles/common/templates/ceph.conf.j2 +++ b/roles/common/templates/ceph.conf.j2 @@ -51,8 +51,10 @@ public_network = {{ public_network }} {% endif %} +{% if mds %} [mds] {% for host in groups['mdss'] %} [mds.{{ hostvars[host]['ansible_hostname'] }}] host = {{ hostvars[host]['ansible_hostname'] }} {% endfor %} +{% endif %}