fix load balancer DNS name index evaluation in openssl.conf

Looks like OpenSSL still properly handles it, even with duplicated
"DNS.X" items.
pull/1034/head
Vladimir Rutsky 2017-02-16 00:13:52 +03:00
parent d92d955aeb
commit a1ec6f401c
1 changed files with 1 additions and 1 deletions

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'] %}