496a3df95f
Change-Id: I9c736a586a757b49170977c7f9cf2c4890557a33
24 lines
370 B
Django/Jinja
24 lines
370 B
Django/Jinja
{% for host in groups['all'] %}
|
|
---
|
|
service_type: host
|
|
hostname: {{ hostvars[host]['ansible_hostname'] }}
|
|
addr: {{ hostvars[host]['ansible_vxlan0']['ipv4']['address'] }}
|
|
labels:
|
|
- _admin
|
|
- mon
|
|
- mgr
|
|
- osd
|
|
{% endfor %}
|
|
---
|
|
service_type: mon
|
|
placement:
|
|
label: "mon"
|
|
---
|
|
service_type: mgr
|
|
placement:
|
|
label: "mgr"
|
|
---
|
|
service_type: crash
|
|
placement:
|
|
host_pattern: "*"
|