Merge pull request #1076 from VincentS/etcd_openssl_count_fix

Fixed counter in ETCD Openssl.conf
This commit is contained in:
Antoine Legrand 2017-03-01 14:17:27 +01:00 committed by GitHub
commit f7c3a8efe2

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