Skip to content

Instantly share code, notes, and snippets.

@VinodVerma7584
Forked from yunano/vault.service
Created May 16, 2017 07:31
Show Gist options
  • Save VinodVerma7584/784a1a44d5bb06977f38a71476f73c6d to your computer and use it in GitHub Desktop.
Save VinodVerma7584/784a1a44d5bb06977f38a71476f73c6d to your computer and use it in GitHub Desktop.
/etc/systemd/system/vault.service
[Unit]
Description=vault server
Requires=network-online.target
After=network-online.target consul.service
[Service]
EnvironmentFile=-/etc/sysconfig/vault
Restart=on-failure
ExecStart=/usr/local/sbin/vault server $OPTIONS -config=/etc/vault.d
ExecStartPost=/bin/bash -c "for key in $KEYS; do /usr/local/sbin/vault unseal $CERT $key; done"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment