2017-02-09 05:41:36 +08:00
|
|
|
---
|
2017-08-30 21:03:22 +08:00
|
|
|
- include: ../shared/auth_backend.yml
|
|
|
|
vars:
|
|
|
|
auth_backend_description: A Username/Password Auth Backend primarily used for services needing to issue certificates
|
|
|
|
auth_backend_path: userpass
|
|
|
|
auth_backend_type: userpass
|
|
|
|
when: inventory_hostname == groups.vault|first
|
2017-02-09 05:41:36 +08:00
|
|
|
|
|
|
|
- include: ../shared/create_role.yml
|
|
|
|
vars:
|
|
|
|
create_role_name: "{{ item.name }}"
|
|
|
|
create_role_group: "{{ item.group }}"
|
|
|
|
create_role_policy_rules: "{{ item.policy_rules }}"
|
|
|
|
create_role_options: "{{ item.role_options }}"
|
2017-08-30 21:03:22 +08:00
|
|
|
create_role_mount_path: "{{ item.mount_path }}"
|
|
|
|
with_items:
|
|
|
|
- "{{ vault_etcd_role }}"
|
|
|
|
- "{{ vault_kube_role }}"
|