config: no not generate osd section if bluestore

This section is not needed when running a bluestore osd.

Signed-off-by: Sébastien Han <seb@redhat.com>
pull/1930/head
Sébastien Han 2017-09-20 18:14:23 +02:00
parent e87d5fd4fd
commit a4baed1025
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ log file = {{ rbd_client_log_file }} # must be writable by QEMU and allowed by S
{% endif %} {% endif %}
{% if inventory_hostname in groups.get(osd_group_name, []) %} {% if inventory_hostname in groups.get(osd_group_name, []) %}
{% if osd_objectstore == 'filestore' %}
[osd] [osd]
osd mkfs type = {{ osd_mkfs_type }} osd mkfs type = {{ osd_mkfs_type }}
osd mkfs options xfs = {{ osd_mkfs_options_xfs }} osd mkfs options xfs = {{ osd_mkfs_options_xfs }}
@ -128,6 +129,7 @@ filestore xattr use omap = true
{# else, default is false #} {# else, default is false #}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %}
{% if groups[mds_group_name] is defined %} {% if groups[mds_group_name] is defined %}
{% if mds_group_name in group_names %} {% if mds_group_name in group_names %}