From a4baed1025213b402155d9cba1a9330be03fb3c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Wed, 20 Sep 2017 18:14:23 +0200 Subject: [PATCH] config: no not generate osd section if bluestore MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This section is not needed when running a bluestore osd. Signed-off-by: Sébastien Han --- roles/ceph-config/templates/ceph.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/ceph-config/templates/ceph.conf.j2 b/roles/ceph-config/templates/ceph.conf.j2 index af3f64835..b64a3111b 100644 --- a/roles/ceph-config/templates/ceph.conf.j2 +++ b/roles/ceph-config/templates/ceph.conf.j2 @@ -116,6 +116,7 @@ log file = {{ rbd_client_log_file }} # must be writable by QEMU and allowed by S {% endif %} {% if inventory_hostname in groups.get(osd_group_name, []) %} +{% if osd_objectstore == 'filestore' %} [osd] osd mkfs type = {{ osd_mkfs_type }} osd mkfs options xfs = {{ osd_mkfs_options_xfs }} @@ -128,6 +129,7 @@ filestore xattr use omap = true {# else, default is false #} {% endif %} {% endif %} +{% endif %} {% if groups[mds_group_name] is defined %} {% if mds_group_name in group_names %} -- 2.39.5