aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2021-06-03 10:34:57 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2024-07-22 08:39:34 +0000
commita42b0b5ed1c428ba1795eedac40239e56008b258 (patch)
treed21ae702ac8bf353de0fc97453f6b8f73742d0cd /roles
parentfc44651d6297b760e5e39bf6635a0cc22e341ce9 (diff)
downloadkolla-ansible-a42b0b5ed1c428ba1795eedac40239e56008b258.tar.gz
kolla-ansible-a42b0b5ed1c428ba1795eedac40239e56008b258.zip
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
Diffstat (limited to 'roles')
-rw-r--r--roles/cephadm/templates/cephadm.yml.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/cephadm/templates/cephadm.yml.j2 b/roles/cephadm/templates/cephadm.yml.j2
index 2aee3f819..b56466c4f 100644
--- a/roles/cephadm/templates/cephadm.yml.j2
+++ b/roles/cephadm/templates/cephadm.yml.j2
@@ -2,8 +2,8 @@
---
service_type: host
hostname: {{ hostvars[host]['ansible_hostname'] }}
-addr: {{ hostvars[host]['ansible_vxlan0']['ipv4']['address'] }}
-labels:
+addr: {{ hostvars[host]['ansible_vxlan_0']['ipv4']['address'] }}
+labels:
- _admin
- mon
- mgr