Browse Source

Fixes #2039 - changing alt_names to be string instead of list (#2043)

pull/2052/head
Brad Beam 7 years ago
committed by Matthew Mosesohn
parent
commit
93f3614382
1 changed files with 3 additions and 3 deletions
  1. 6
      roles/vault/tasks/bootstrap/gen_vault_certs.yml

6
roles/vault/tasks/bootstrap/gen_vault_certs.yml

@ -2,11 +2,11 @@
- include: ../shared/issue_cert.yml
vars:
issue_cert_common_name: "{{ vault_pki_mounts.vault.roles[0].name }}"
issue_cert_alt_names: "{{ groups.vault + ['localhost'] + vault_ca_options.vault.alt_names|default() }}"
issue_cert_hosts: "{{ groups.vault }}"
issue_cert_alt_names: "{{ groups['vault'] + ['localhost'] + vault_ca_options.vault.alt_names|default() | join(',') }}"
issue_cert_hosts: "{{ groups['vault'] }}"
issue_cert_ip_sans: >-
[
{%- for host in groups.vault -%}
{%- for host in groups['vault'] -%}
"{{ hostvars[host]['ansible_default_ipv4']['address'] }}",
{%- if hostvars[host]['ip'] is defined -%}
"{{ hostvars[host]['ip'] }}",

Loading…
Cancel
Save