Skip to content

Commit ae12630

Browse files
committed
cluster.yml fix for all-in-one scenario
1 parent 0f3128a commit ae12630

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

templates/cluster.yml.j2

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
{% for host in groups['ceph'] %}
2+
---
3+
service_type: host
4+
hostname: {{ host }}
5+
labels:
6+
{% if host in groups['mons'] %}
7+
- mon
8+
{% endif %}
9+
{% if host in groups['mgrs'] %}
10+
- mgr
11+
{% endif %}
12+
{% if host in groups['osds'] %}
13+
- osd
14+
{% endif %}
15+
{% endfor %}
116
---
217
service_type: mon
318
placement:
@@ -10,18 +25,3 @@ placement:
1025
service_type: crash
1126
placement:
1227
host_pattern: "*"
13-
{% for host in groups['mons'] %}
14-
---
15-
service_type: host
16-
hostname: {{ host }}
17-
labels:
18-
- mon
19-
- mgr
20-
{% endfor %}
21-
{% for host in groups['osds'] %}
22-
---
23-
service_type: host
24-
hostname: {{ host }}
25-
labels:
26-
- osd
27-
{% endfor %}

0 commit comments

Comments
 (0)