Browse Source
Merge pull request #2226 from manics/supplemental-addresses
Enable additional addresses to be added to certificates
pull/2258/head
Antoine Legrand
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
roles/kubernetes/secrets/templates/openssl.conf.j2
|
@ -33,6 +33,10 @@ IP.{{ idx + 1 }} = 127.0.0.1 |
|
|
{% if supplementary_addresses_in_ssl_keys is defined %} |
|
|
{% if supplementary_addresses_in_ssl_keys is defined %} |
|
|
{% set is = idx + 1 %} |
|
|
{% set is = idx + 1 %} |
|
|
{% for addr in supplementary_addresses_in_ssl_keys %} |
|
|
{% for addr in supplementary_addresses_in_ssl_keys %} |
|
|
|
|
|
{% if addr | ipaddr %} |
|
|
IP.{{ is + loop.index }} = {{ addr }} |
|
|
IP.{{ is + loop.index }} = {{ addr }} |
|
|
|
|
|
{% else %} |
|
|
|
|
|
DNS.{{ is + loop.index }} = {{ addr }} |
|
|
|
|
|
{% endif %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endif %} |
|
|
{% endif %} |