Skip to content

Commit b74ec59

Browse files
authored
Make rgws group really optional (#41)
Currently templating fails when group is missing.
1 parent 39f12f9 commit b74ec59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/cephadm/templates/cluster.yml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ labels:
1414
{% if host in groups['osds'] %}
1515
- osd
1616
{% endif %}
17-
{% if host in groups['rgws'] %}
17+
{% if host in groups.get('rgws', []) %}
1818
- rgw
1919
{% endif %}
2020
{% endfor %}
@@ -32,7 +32,7 @@ placement:
3232
service_type: crash
3333
placement:
3434
host_pattern: "*"
35-
{% if groups['rgws'] | length > 0 %}
35+
{% if groups.get('rgws', []) | length > 0 %}
3636
{% for service in cephadm_radosgw_services %}
3737
---
3838
service_type: rgw

0 commit comments

Comments
 (0)