Merge pull request #1034 from rutsky/fix-openssl-lb-index

fix load balancer DNS name index evaluation in openssl.conf
This commit is contained in:
Matthew Mosesohn 2017-02-20 20:23:26 +03:00 committed by GitHub
commit 042d094ce7

View file

@ -16,7 +16,7 @@ DNS.5 = localhost
DNS.{{ 5 + loop.index }} = {{ host }}
{% endfor %}
{% if loadbalancer_apiserver is defined and apiserver_loadbalancer_domain_name is defined %}
{% set idx = groups['kube-master'] | length | int + 5 %}
{% set idx = groups['kube-master'] | length | int + 5 + 1 %}
DNS.{{ idx | string }} = {{ apiserver_loadbalancer_domain_name }}
{% endif %}
{% for host in groups['kube-master'] %}