Created
May 1, 2015 15:54
-
-
Save yunano/7178c825bd4450f03f4a to your computer and use it in GitHub Desktop.
/etc/systemd/system/consul-template.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=consul-template | |
Requires=network-online.target | |
After=network-online.target consul.service vault.service | |
[Service] | |
EnvironmentFile=-/etc/sysconfig/consul-template | |
Restart=on-failure | |
ExecStart=/usr/local/sbin/consul-template $OPTIONS -config=/etc/consul-template.d | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this.
Also note that requiring a local
vault.service
limits its utility: I'm about to run this service on the nodes of my Consul cluster -- to rotate the gossip key -- which is supporting a Vault service elsewhere.[Edit: my mistake; read it too quickly: After is a loose coupling.]