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
|
|
|
|
|
2017-01-13 20:31:10 +00:00
|
|
|
## Vault Cluster Setup
|
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
- 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-08-30 13:03:22 +00:00
|
|
|
- include: ../shared/create_mount.yml
|
|
|
|
vars:
|
|
|
|
create_mount_path: "{{ vault_ca_options.common_name }}"
|
|
|
|
create_mount_default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
create_mount_max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
create_mount_description: "Vault Root CA"
|
|
|
|
create_mount_cert_dir: "{{ vault_cert_dir }}"
|
|
|
|
create_mount_config_ca_needed: true
|
2017-02-08 21:41:36 +00:00
|
|
|
when: inventory_hostname == groups.vault|first
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-08-30 13:03:22 +00:00
|
|
|
- include: ../shared/create_mount.yml
|
2017-01-13 20:31:10 +00:00
|
|
|
vars:
|
2017-08-30 13:03:22 +00:00
|
|
|
create_mount_path: "{{ vault_etcd_mount_path }}"
|
|
|
|
create_mount_default_lease_ttl: "{{ vault_etcd_default_lease_ttl }}"
|
|
|
|
create_mount_max_lease_ttl: "{{ vault_etcd_max_lease_ttl }}"
|
|
|
|
create_mount_description: "Etcd Root CA"
|
|
|
|
create_mount_cert_dir: "{{ vault_etcd_cert_dir }}"
|
|
|
|
create_mount_config_ca_needed: true
|
2017-02-08 21:41:36 +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/create_mount.yml
|
|
|
|
vars:
|
|
|
|
create_mount_path: "{{ vault_kube_mount_path }}"
|
|
|
|
create_mount_default_lease_ttl: "{{ vault_kube_default_lease_ttl }}"
|
|
|
|
create_mount_max_lease_ttl: "{{ vault_kube_max_lease_ttl }}"
|
|
|
|
create_mount_description: "Kubernetes Root CA"
|
|
|
|
create_mount_cert_dir: "{{ vault_kube_cert_dir }}"
|
|
|
|
create_mount_config_ca_needed: false
|
|
|
|
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:
|
|
|
|
gen_ca_cert_dir: "{{ vault_kube_cert_dir }}"
|
|
|
|
gen_ca_mount_path: "{{ vault_kube_mount_path }}"
|
|
|
|
when: inventory_hostname in groups.vault
|
|
|
|
|
|
|
|
## Vault Policies, Roles, and Auth Backends
|
2017-02-17 21:22:34 +00:00
|
|
|
|
2017-08-30 13:03:22 +00:00
|
|
|
- include: create_roles.yml
|