a42b0b5ed1
Interface names with dashes can cause problems in Ansible since dashes are replaced with underscores when referencing facts. Change-Id: Ib15f81120d353ebcf8965dc0aaba90f3a9b0ec44 Related-Bug: #1927357
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_vxlan_0']['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: "*"
|