]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
config: write jinja comment with appropriate syntax
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 29 Nov 2018 09:16:52 +0000 (10:16 +0100)
committerSébastien Han <seb@redhat.com>
Thu, 29 Nov 2018 14:48:23 +0000 (15:48 +0100)
jinja comment should be written using the jinja syntax `{# ... #}`

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1654441
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-config/templates/ceph.conf.j2

index a8a54f8e8ca2c2f13f2554a06f62dd4c91cb1837..a21b0e4e9259f1fb8a781eccbc768ac576928a7d 100644 (file)
@@ -89,11 +89,13 @@ filestore xattr use omap = true
 {% set _num_osds = num_osds | default(0) | int %}
 [osd]
 {% if is_hci and _num_osds > 0 %}
-{% if ansible_memtotal_mb * 1048576 * hci_safety_factor / _num_osds > osd_memory_target %} # hci_safety_factor is the safety factor for HCI deployments
+{# hci_safety_factor is the safety factor for HCI deployments #}
+{% if ansible_memtotal_mb * 1048576 * hci_safety_factor / _num_osds > osd_memory_target %}
 {% set _osd_memory_target = (ansible_memtotal_mb * 1048576 * hci_safety_factor / _num_osds) | int %}
 {% endif %}
 {% elif _num_osds > 0 %}
-{% if ansible_memtotal_mb * 1048576 * non_hci_safety_factor / _num_osds > osd_memory_target %} # non_hci_safety_factor is the safety factor for dedicated nodes
+{# non_hci_safety_factor is the safety factor for dedicated nodes #}
+{% if ansible_memtotal_mb * 1048576 * non_hci_safety_factor / _num_osds > osd_memory_target %}
 {% set _osd_memory_target = (ansible_memtotal_mb * 1048576 * non_hci_safety_factor / _num_osds) | int %}
 {% endif %}
 {% endif %}