-
-
Save takuan-osho/d1b477188600e32688e0b961819f5e32 to your computer and use it in GitHub Desktop.
/etc/systemd/system/vault.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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