Skip to content

Commit e375585

Browse files
committed
Fix templating of cephadm_host_labels
1 parent 0035b8e commit e375585

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roles/cephadm/templates/cluster.yml.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ labels:
2222
- ingress
2323
{% endif %}
2424
{% if hostvars[host].get('cephadm_host_labels', []) | length > 0 %}
25-
{{ hostvars[host].get('cephadm_host_labels', []) }}
25+
{% for label in hostvars['mds1'].cephadm_host_labels %}
26+
- {{ label }}
27+
{% endfor %}
2628
{% endif %}
2729
{% endfor %}
2830
---

0 commit comments

Comments
 (0)