Browse Source

Increase the idx counter

Fix the idx counter to increase too, or you will end up with two same indexes.
pull/2214/head
Andreas Krüger 6 years ago
committed by GitHub
parent
commit
088d36da09
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. 1
      roles/kubernetes/secrets/templates/openssl.conf.j2

1
roles/kubernetes/secrets/templates/openssl.conf.j2

@ -27,6 +27,7 @@ IP.{{ 2 * loop.index }} = {{ hostvars[host]['ip'] | default(hostvars[host]['ansi
IP.{{ idx }} = {{ kube_apiserver_ip }}
{% if loadbalancer_apiserver is defined %}
IP.{{ idx + 1 }} = {{ loadbalancer_apiserver.address }}
{% set idx = idx + 1 %}
{% endif %}
IP.{{ idx + 1 }} = 127.0.0.1
{% if supplementary_addresses_in_ssl_keys is defined %}

Loading…
Cancel
Save