Fixed counter in ETCD Openssl.conf

When a apiserver_loadbalancer_domain_name is added to the Openssl.conf
the counter gets not increased correctly. This didnt seem to have an
effect at the current kargo version.
pull/1076/head
Vincent Schwarzer 2017-02-27 12:01:09 +01:00
parent 069606947c
commit 0cbc3d8df6
1 changed files with 1 additions and 1 deletions

View File

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