mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
Adding ability to specify altnames for vault cert (#1640)
This commit is contained in:
committed by
Matthew Mosesohn
parent
016301508e
commit
4b587aaf99
@@ -83,6 +83,11 @@ vault_ca_options:
|
|||||||
format: pem
|
format: pem
|
||||||
ttl: "{{ vault_max_lease_ttl }}"
|
ttl: "{{ vault_max_lease_ttl }}"
|
||||||
exclude_cn_from_sans: true
|
exclude_cn_from_sans: true
|
||||||
|
altnames:
|
||||||
|
- "vault.{{ system_namespace }}.svc.{{ dns_domain }}"
|
||||||
|
- "vault.{{ system_namespace }}.svc"
|
||||||
|
- "vault.{{ system_namespace }}"
|
||||||
|
- "vault"
|
||||||
etcd:
|
etcd:
|
||||||
common_name: etcd
|
common_name: etcd
|
||||||
format: pem
|
format: pem
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
- include: ../shared/issue_cert.yml
|
- include: ../shared/issue_cert.yml
|
||||||
vars:
|
vars:
|
||||||
issue_cert_common_name: "{{ vault_pki_mounts.vault.roles[0].name }}"
|
issue_cert_common_name: "{{ vault_pki_mounts.vault.roles[0].name }}"
|
||||||
issue_cert_alt_names: "{{ groups.vault + ['localhost'] }}"
|
issue_cert_alt_names: "{{ groups.vault + ['localhost'] + vault_ca_options.vault.altnames|default() }}"
|
||||||
issue_cert_hosts: "{{ groups.vault }}"
|
issue_cert_hosts: "{{ groups.vault }}"
|
||||||
issue_cert_ip_sans: >-
|
issue_cert_ip_sans: >-
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user