Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
94 additions
and
51 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Consul Agent (Upstart unit) | ||
description "Consul-Template" | ||
start on (local-filesystems and net-device-up IFACE!=lo) | ||
stop on runlevel [06] | ||
|
||
exec sudo -u {{ consul_user }} -g {{ consul_group }} {{ consul_home }}/bin/consul-template -config /etc/consul.template.d/ >> {{ consul_log_file }} 2>&1 | ||
respawn | ||
respawn limit 10 10 | ||
kill timeout 10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
consul = "127.0.0.1:5000" | ||
max_stale = "0" | ||
retry = "30s" |