mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
refactor vault role (#2733)
* Move front-proxy-client certs back to kube mount We want the same CA for all k8s certs * Refactor vault to use a third party module The module adds idempotency and reduces some of the repetitive logic in the vault role Requires ansible-modules-hashivault on ansible node and hvac on the vault hosts themselves Add upgrade test scenario Remove bootstrap-os tags from tasks * fix upgrade issues * improve unseal logic * specify ca and fix etcd check * Fix initialization check bump machine size
This commit is contained in:
@@ -21,13 +21,15 @@ ExecStart={{ docker_bin_dir }}/docker run \
|
||||
--cap-add=IPC_LOCK \
|
||||
-v {{ vault_cert_dir }}:{{ vault_cert_dir }} \
|
||||
-v {{ vault_config_dir }}:{{ vault_config_dir }} \
|
||||
-v {{ vault_etcd_cert_dir }}:{{ vault_etcd_cert_dir }} \
|
||||
-v /etc/ssl:/etc/ssl \
|
||||
-v {{ etcd_cert_dir }}:{{ etcd_cert_dir }} \
|
||||
-v {{ vault_log_dir }}:/vault/logs \
|
||||
-v {{ vault_roles_dir }}:{{ vault_roles_dir }} \
|
||||
-v {{ vault_secrets_dir }}:{{ vault_secrets_dir }} \
|
||||
--entrypoint=vault \
|
||||
{{ vault_image_repo }}:{{ vault_image_tag }} \
|
||||
server --config={{ vault_config_dir }}/config.json
|
||||
server --config={{ vault_config_dir }}/config.json \
|
||||
--log-level=trace
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user