add the loadbalancer address to ssl certs

This commit is contained in:
Smaine Kahlouch 2015-12-12 19:09:19 +01:00
parent 3cbcd6f189
commit af9b945874

View file

@ -15,7 +15,7 @@ IP.{{ loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansible_
{% endfor %}
{% set idx = groups['kube-master'] | length | int + 1 %}
IP.{{ idx | string }} = {{ kube_apiserver_ip }}
{% if kube_loadbalancer_ip is defined | default('') %}
{% if loadbalancer_address is defined | default('') %}
{% set idx = idx | int + 1 %}
IP.{{ idx | string }} = {{ kube_loadbalancer }}
IP.{{ idx | string }} = {{ loadbalancer_address }}
{% endif %}