2017-01-13 20:31:10 +00:00
|
|
|
---
|
2017-09-01 19:51:37 +00:00
|
|
|
vault_bootstrap: false
|
|
|
|
vault_deployment_type: docker
|
2017-01-13 20:31:10 +00:00
|
|
|
|
2017-02-08 21:41:36 +00:00
|
|
|
vault_adduser_vars:
|
|
|
|
comment: "Hashicorp Vault User"
|
|
|
|
createhome: no
|
|
|
|
name: vault
|
|
|
|
shell: /sbin/nologin
|
|
|
|
system: yes
|
2017-09-01 19:51:37 +00:00
|
|
|
|
|
|
|
# This variables redefined in kubespray-defaults for using shared tasks
|
|
|
|
# in etcd and kubernetes/secrets roles
|
2017-02-08 21:41:36 +00:00
|
|
|
vault_base_dir: /etc/vault
|
|
|
|
vault_cert_dir: "{{ vault_base_dir }}/ssl"
|
|
|
|
vault_config_dir: "{{ vault_base_dir }}/config"
|
2017-09-01 19:51:37 +00:00
|
|
|
vault_roles_dir: "{{ vault_base_dir }}/roles"
|
|
|
|
vault_secrets_dir: "{{ vault_base_dir }}/secrets"
|
|
|
|
vault_log_dir: "/var/log/vault"
|
|
|
|
|
|
|
|
vault_version: 0.8.1
|
|
|
|
vault_binary_checksum: 3c4d70ba71619a43229e65c67830e30e050eab7a81ac6b28325ff707e5914188
|
2017-02-08 21:41:36 +00:00
|
|
|
vault_download_url: "https://releases.hashicorp.com/vault/{{ vault_version }}/vault_{{ vault_version }}_linux_amd64.zip"
|
|
|
|
vault_download_vars:
|
|
|
|
container: "{{ vault_deployment_type != 'host' }}"
|
|
|
|
dest: "vault/vault_{{ vault_version }}_linux_amd64.zip"
|
|
|
|
enabled: true
|
|
|
|
mode: "0755"
|
|
|
|
owner: "vault"
|
|
|
|
repo: "{{ vault_image_repo }}"
|
|
|
|
sha256: "{{ vault_binary_checksum if vault_deployment_type == 'host' else vault_digest_checksum|d(none) }}"
|
|
|
|
source_url: "{{ vault_download_url }}"
|
|
|
|
tag: "{{ vault_image_tag }}"
|
|
|
|
unarchive: true
|
|
|
|
url: "{{ vault_download_url }}"
|
|
|
|
version: "{{ vault_version }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
|
|
|
|
vault_container_name: kube-hashicorp-vault
|
|
|
|
vault_temp_container_name: vault-temp
|
2017-02-08 21:41:36 +00:00
|
|
|
vault_image_repo: "vault"
|
|
|
|
vault_image_tag: "{{ vault_version }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
|
2017-09-04 21:16:44 +00:00
|
|
|
vault_bind_address: 0.0.0.0
|
2017-01-13 20:31:10 +00:00
|
|
|
vault_port: 8200
|
2017-10-17 15:57:36 +00:00
|
|
|
vault_etcd_url: "{{ etcd_access_addresses }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
|
2017-11-29 10:38:59 +00:00
|
|
|
# 10y default lease
|
|
|
|
vault_default_lease_ttl: 87600h
|
2017-09-01 19:51:37 +00:00
|
|
|
vault_max_lease_ttl: 87600h
|
|
|
|
|
2017-01-13 20:31:10 +00:00
|
|
|
vault_temp_config:
|
|
|
|
backend:
|
|
|
|
file:
|
|
|
|
path: /vault/file
|
2017-08-23 06:54:01 +00:00
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
2017-01-13 20:31:10 +00:00
|
|
|
listener:
|
|
|
|
tcp:
|
2017-09-04 21:16:44 +00:00
|
|
|
address: "{{ vault_bind_address }}:{{ vault_port }}"
|
2017-01-13 20:31:10 +00:00
|
|
|
tls_disable: "true"
|
2017-08-23 06:54:01 +00:00
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
|
|
|
|
vault_config:
|
|
|
|
backend:
|
|
|
|
etcd:
|
|
|
|
address: "{{ vault_etcd_url }}"
|
|
|
|
ha_enabled: "true"
|
|
|
|
redirect_addr: "https://{{ ansible_default_ipv4.address }}:{{ vault_port }}"
|
|
|
|
tls_ca_file: "{{ vault_etcd_cert_dir }}/ca.pem"
|
|
|
|
cluster_name: "kubernetes-vault"
|
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
listener:
|
|
|
|
tcp:
|
2017-09-04 21:16:44 +00:00
|
|
|
address: "{{ vault_bind_address }}:{{ vault_port }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
tls_cert_file: "{{ vault_cert_dir }}/api.pem"
|
|
|
|
tls_key_file: "{{ vault_cert_dir }}/api-key.pem"
|
|
|
|
|
|
|
|
vault_secret_shares: 1
|
|
|
|
vault_secret_threshold: 1
|
|
|
|
|
|
|
|
vault_ca_options:
|
|
|
|
vault:
|
|
|
|
common_name: vault
|
|
|
|
format: pem
|
|
|
|
ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
exclude_cn_from_sans: true
|
2017-09-14 06:19:44 +00:00
|
|
|
altnames:
|
|
|
|
- "vault.{{ system_namespace }}.svc.{{ dns_domain }}"
|
|
|
|
- "vault.{{ system_namespace }}.svc"
|
|
|
|
- "vault.{{ system_namespace }}"
|
|
|
|
- "vault"
|
2017-09-01 19:51:37 +00:00
|
|
|
etcd:
|
|
|
|
common_name: etcd
|
|
|
|
format: pem
|
|
|
|
ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
exclude_cn_from_sans: true
|
|
|
|
kube:
|
|
|
|
common_name: kube
|
|
|
|
format: pem
|
|
|
|
ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
exclude_cn_from_sans: true
|
|
|
|
|
|
|
|
vault_client_headers:
|
|
|
|
Accept: "application/json"
|
|
|
|
Content-Type: "application/json"
|
|
|
|
|
2017-08-30 13:03:22 +00:00
|
|
|
vault_etcd_cert_dir: /etc/ssl/etcd/ssl
|
2017-09-01 19:51:37 +00:00
|
|
|
vault_kube_cert_dir: /etc/kubernetes/ssl
|
|
|
|
|
|
|
|
vault_pki_mounts:
|
|
|
|
vault:
|
|
|
|
name: vault
|
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
description: "Vault Root CA"
|
|
|
|
cert_dir: "{{ vault_cert_dir }}"
|
|
|
|
roles:
|
|
|
|
- name: vault
|
|
|
|
group: vault
|
2017-09-07 20:30:16 +00:00
|
|
|
password: "{{ lookup('password', 'credentials/vault/vault length=15') }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
policy_rules: default
|
|
|
|
role_options: default
|
|
|
|
etcd:
|
|
|
|
name: etcd
|
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
description: "Etcd Root CA"
|
|
|
|
cert_dir: "{{ vault_etcd_cert_dir }}"
|
|
|
|
roles:
|
|
|
|
- name: etcd
|
|
|
|
group: etcd
|
2017-09-07 20:30:16 +00:00
|
|
|
password: "{{ lookup('password', 'credentials/vault/etcd length=15') }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
policy_rules: default
|
|
|
|
role_options:
|
|
|
|
allow_any_name: true
|
|
|
|
enforce_hostnames: false
|
|
|
|
organization: "kube:etcd"
|
|
|
|
kube:
|
|
|
|
name: kube
|
|
|
|
default_lease_ttl: "{{ vault_default_lease_ttl }}"
|
|
|
|
max_lease_ttl: "{{ vault_max_lease_ttl }}"
|
|
|
|
description: "Kubernetes Root CA"
|
|
|
|
cert_dir: "{{ vault_kube_cert_dir }}"
|
|
|
|
roles:
|
|
|
|
- name: kube-master
|
|
|
|
group: kube-master
|
2017-09-07 20:30:16 +00:00
|
|
|
password: "{{ lookup('password', 'credentials/vault/kube-master length=15') }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
policy_rules: default
|
|
|
|
role_options:
|
|
|
|
allow_any_name: true
|
|
|
|
enforce_hostnames: false
|
|
|
|
organization: "system:masters"
|
|
|
|
- name: kube-node
|
|
|
|
group: k8s-cluster
|
2017-09-07 20:30:16 +00:00
|
|
|
password: "{{ lookup('password', 'credentials/vault/kube-node length=15') }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
policy_rules: default
|
|
|
|
role_options:
|
|
|
|
allow_any_name: true
|
|
|
|
enforce_hostnames: false
|
|
|
|
organization: "system:nodes"
|
|
|
|
- name: kube-proxy
|
|
|
|
group: k8s-cluster
|
2017-09-07 20:30:16 +00:00
|
|
|
password: "{{ lookup('password', 'credentials/vault/kube-proxy length=15') }}"
|
2017-09-01 19:51:37 +00:00
|
|
|
policy_rules: default
|
|
|
|
role_options:
|
|
|
|
allow_any_name: true
|
|
|
|
enforce_hostnames: false
|
|
|
|
organization: "system:node-proxier"
|