summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2019-09-26 08:08:49 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-26 08:08:49 +0000
commit0a5a34ffe4b6506663a61372998f43657bf81230 (patch)
treeb312a45cad4dc581ccea9b4cf4a391cb15872253 /tools
parentef1aef15d17eae648f9eaf720c85d9c1f3f5e97e (diff)
parent4df25e7d379b09210810427f20a1da2b531fcc9a (diff)
Merge changes from topic "OOM-2112"
* changes: Make cicdansible to set external ip Use external_ip to populate the node address Add external_ip variable
Diffstat (limited to 'tools')
-rw-r--r--tools/cicdansible/roles/install/templates/inventory.yml.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/cicdansible/roles/install/templates/inventory.yml.j2 b/tools/cicdansible/roles/install/templates/inventory.yml.j2
index 36bf3bd3..c828ca00 100644
--- a/tools/cicdansible/roles/install/templates/inventory.yml.j2
+++ b/tools/cicdansible/roles/install/templates/inventory.yml.j2
@@ -16,6 +16,7 @@ all:
infra_host:
ansible_host: infra
cluster_ip: {{ hostvars['infra'].ansible_default_ipv4.address }}
+ external_ip: "{{ hostvars['infra'].ansible_host }}"
kubernetes:
children:
kubernetes-node:
@@ -24,6 +25,9 @@ all:
{{ h }}:
ansible_host: "{{ hostvars[h].ansible_default_ipv4.address }}"
cluster_ip: "{{ hostvars[h].ansible_default_ipv4.address }}"
+{% if h == 'node0' %}
+ external_ip: "{{ hostvars[h].first_node_ip }}"
+{% endif %}
{% endfor %}
kubernetes-control-plane:
hosts: