2017-02-08 21:41:36 +00:00
|
|
|
---
|
|
|
|
|
2017-08-30 13:03:22 +00:00
|
|
|
- include: ../shared/pki_mount.yml
|
2017-02-08 21:41:36 +00:00
|
|
|
vars:
|
2017-08-30 13:03:22 +00:00
|
|
|
pki_mount_path: auth-pki
|
|
|
|
pki_mount_options:
|
2017-02-08 21:41:36 +00:00
|
|
|
description: PKI mount to generate certs for the Cert Auth Backend
|
|
|
|
config:
|
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
|
|
|
|
- name: shared/auth_mount | Create a dummy role for issuing certs from auth-pki
|
|
|
|
uri:
|
|
|
|
url: "{{ hostvars[groups.vault|first]['vault_leader_url'] }}/v1/auth-pki/roles/dummy"
|
|
|
|
headers: "{{ hostvars[groups.vault|first]['vault_headers'] }}"
|
|
|
|
method: POST
|
|
|
|
body_format: json
|
|
|
|
body:
|
|
|
|
{'allow_any_name': true}
|
|
|
|
status_code: 204
|