2017-01-13 20:31:10 +00:00
|
|
|
---
|
2017-02-08 21:41:36 +00:00
|
|
|
- include: ../shared/check_vault.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
- include: ../shared/check_etcd.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
|
|
|
|
|
|
|
- include: configure.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
- include: binary.yml
|
|
|
|
when: inventory_hostname in groups.vault and vault_deployment_type == "host"
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
- include: systemd.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-01-13 20:31:10 +00:00
|
|
|
- include: init.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-01-13 20:31:10 +00:00
|
|
|
- include: unseal.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
- include: ../shared/find_leader.yml
|
|
|
|
when: inventory_hostname in groups.vault
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-09-01 19:51:37 +00:00
|
|
|
- include: create_mounts.yml
|
2017-08-30 13:03:22 +00:00
|
|
|
when: inventory_hostname == groups.vault|first
|
2017-01-13 20:31:10 +00:00
|
|
|
|
2017-08-30 13:03:22 +00:00
|
|
|
- include: ../shared/gen_ca.yml
|
|
|
|
vars:
|
2017-09-01 19:51:37 +00:00
|
|
|
gen_ca_cert_dir: "{{ vault_pki_mounts.kube.cert_dir }}"
|
|
|
|
gen_ca_mount_path: "{{ vault_pki_mounts.kube.name }}"
|
|
|
|
gen_ca_vault_headers: "{{ vault_headers }}"
|
|
|
|
gen_ca_vault_options: "{{ vault_ca_options.kube }}"
|
2017-08-30 13:03:22 +00:00
|
|
|
when: inventory_hostname in groups.vault
|
|
|
|
|
2017-09-01 19:51:37 +00: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-17 21:22:34 +00:00
|
|
|
|
2017-08-30 13:03:22 +00:00
|
|
|
- include: create_roles.yml
|
2017-09-07 20:30:16 +00:00
|
|
|
with_items:
|
|
|
|
- "{{ vault_pki_mounts.vault }}"
|
|
|
|
- "{{ vault_pki_mounts.etcd }}"
|
|
|
|
- "{{ vault_pki_mounts.kube }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: mount
|
2017-09-05 08:05:06 +00:00
|
|
|
when: inventory_hostname in groups.vault
|