07cc981971
* 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
35 lines
1.1 KiB
Django/Jinja
35 lines
1.1 KiB
Django/Jinja
[Unit]
|
|
Description=hashicorp vault on docker
|
|
Documentation=https://github.com/hashicorp/vault
|
|
Wants=docker.socket
|
|
After=docker.service
|
|
|
|
[Service]
|
|
User=root
|
|
Restart=always
|
|
RestartSec=15s
|
|
TimeoutStartSec=5
|
|
LimitNOFILE=10000
|
|
ExecReload={{ docker_bin_dir }}/docker restart {{ vault_container_name }}
|
|
ExecStop={{ docker_bin_dir }}/docker stop {{ vault_container_name }}
|
|
ExecStartPre=-{{ docker_bin_dir }}/docker rm -f {{ vault_container_name }}
|
|
# Container has the following internal mount points:
|
|
# /vault/file/ # File backend storage location
|
|
# /vault/logs/ # Log files
|
|
ExecStart={{ docker_bin_dir }}/docker run \
|
|
--name {{ vault_container_name }} --net=host \
|
|
--cap-add=IPC_LOCK \
|
|
-v {{ vault_cert_dir }}:{{ vault_cert_dir }} \
|
|
-v {{ vault_config_dir }}:{{ vault_config_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 \
|
|
--log-level=trace
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|