From 739ee57d394d4e423d67846d3978b8a66bbf1039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 10 Mar 2014 17:14:11 +0100 Subject: [PATCH] Allow to disable MDS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- group_vars/all | 1 + roles/common/templates/ceph.conf.j2 | 2 ++ 2 files changed, 3 insertions(+) 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 %}