diff options
author | Michal Zegan <m.zegan@samsung.com> | 2019-09-16 18:04:30 +0200 |
---|---|---|
committer | Michal Zegan <m.zegan@samsung.com> | 2019-09-16 18:06:30 +0200 |
commit | 4df25e7d379b09210810427f20a1da2b531fcc9a (patch) | |
tree | 3a0942cc7c757f9a73fdbca85e694832753cd016 /tools/cicdansible/roles/install | |
parent | 1bb11f154f93fa9ddb6d2fa8281e104a2157ded5 (diff) |
Make cicdansible to set external ip
Make cicdansible to set external_ip correctly using floating ips.
Change-Id: I3791ee670806c7008073389e43dec5e887abfda9
Issue-ID: OOM-2112
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'tools/cicdansible/roles/install')
-rw-r--r-- | tools/cicdansible/roles/install/templates/inventory.yml.j2 | 4 |
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: |