Render crush-initial-weight option if set to 0
Fixes the conditional in the ceph.conf template so it renders the
crush-initial-weight config option if set to 0.
Change-Id: Iaecbdf52bd3731effa3132e61364918407116dbe
Closes-Bug: 1764077
(cherry picked from commit 5ea1973062
)
This commit is contained in:
parent
9163455219
commit
63a1fe3ac7
|
@ -33,7 +33,7 @@ crush location = {{crush_location}}
|
||||||
{%- if upgrade_in_progress %}
|
{%- if upgrade_in_progress %}
|
||||||
setuser match path = /var/lib/ceph/$type/$cluster-$id
|
setuser match path = /var/lib/ceph/$type/$cluster-$id
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if crush_initial_weight %}
|
{%- if crush_initial_weight is not none %}
|
||||||
osd crush initial weight = {{ crush_initial_weight }}
|
osd crush initial weight = {{ crush_initial_weight }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{% if global -%}
|
{% if global -%}
|
||||||
|
|
Loading…
Reference in New Issue