Skip to content

Commit 083dcea

Browse files
authored
Merge pull request #148 from stackhpc/dashes_interface
Replace dashes with underscores in interface names
2 parents 4522369 + f1883fa commit 083dcea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

roles/cephadm/tasks/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Bootstrap cephadm
33
vars:
4-
mon_ip: "{{ hostvars[inventory_hostname].ansible_facts[cephadm_public_interface].ipv4.address }}"
4+
mon_ip: "{{ hostvars[inventory_hostname].ansible_facts[cephadm_public_interface | replace('-', '_')].ipv4.address }}"
55
monitoring_stack: "{{ '--skip-monitoring-stack' if not (cephadm_enable_monitoring | bool) else '' }}"
66
dashboard: "{{ '--skip-dashboard' if not cephadm_enable_dashboard | bool else '' }}"
77
firewalld: "{{ '--skip-firewalld' if not cephadm_enable_firewalld | bool else '' }}"

roles/cephadm/templates/cluster.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
service_type: host
44
hostname: {{ hostvars[host].ansible_facts.nodename }}
55
{% set cephadm_admin_interface = hostvars[host]['cephadm_admin_interface'] %}
6-
addr: {{ hostvars[host]['ansible_facts'][cephadm_admin_interface]['ipv4']['address'] }}
6+
addr: {{ hostvars[host]['ansible_facts'][cephadm_admin_interface | replace('-', '_')]['ipv4']['address'] }}
77
labels:
88
{% if host in groups['mons'] %}
99
- _admin

0 commit comments

Comments
 (0)