Browse Source

contrib/heketi: use inventory node ip in topology instead of guessing it (#5233)

pull/5268/head
Julien Pervillé 5 years ago
committed by Kubernetes Prow Robot
parent
commit
d1b1add176
2 changed files with 2 additions and 2 deletions
  1. 2
      contrib/network-storage/heketi/roles/provision/templates/heketi-storage.json.j2
  2. 2
      contrib/network-storage/heketi/roles/provision/templates/topology.json.j2

2
contrib/network-storage/heketi/roles/provision/templates/heketi-storage.json.j2

@ -16,7 +16,7 @@
{ {
"addresses": [ "addresses": [
{ {
"ip": "{{ hostvars[node]['ansible_facts']['default_ipv4']['address'] }}"
"ip": "{{ hostvars[node].ip }}"
} }
], ],
"ports": [ "ports": [

2
contrib/network-storage/heketi/roles/provision/templates/topology.json.j2

@ -12,7 +12,7 @@
"{{ node }}" "{{ node }}"
], ],
"storage": [ "storage": [
"{{ hostvars[node]['ansible_facts']['default_ipv4']['address'] }}"
"{{ hostvars[node].ip }}"
] ]
}, },
"zone": 1 "zone": 1

Loading…
Cancel
Save