Adding ability to specify altnames for vault cert (#1640)

This commit is contained in:
Brad Beam
2017-09-14 01:19:44 -05:00
committed by Matthew Mosesohn
parent 016301508e
commit 4b587aaf99
2 changed files with 6 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
- include: ../shared/issue_cert.yml
vars:
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_ip_sans: >-
[