kolla-ansible/roles/cephadm/templates/cephadm.yml.j2
Mark Goddard a42b0b5ed1 CI: test interface names with dashes
Interface names with dashes can cause problems in Ansible since dashes
are replaced with underscores when referencing facts.

Change-Id: Ib15f81120d353ebcf8965dc0aaba90f3a9b0ec44
Related-Bug: #1927357
2024-07-22 08:39:34 +00:00

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: "*"