-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
978eaf4
commit c0a2d42
Showing
5 changed files
with
41 additions
and
15 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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
[Resolve] | ||
DNS=127.0.0.1:{{ _consul.dns_port|default(8600) }} | ||
DNSSEC=false | ||
Domains=~{{ _consul.domain }} |
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,23 @@ | ||
[Unit] | ||
Description="HashiCorp Consul" | ||
Documentation=https://www.consul.io/ | ||
Requires=network-online.target | ||
After=network-online.target | ||
ConditionFileNotEmpty={{ _consul.config_dir }}/main.json | ||
|
||
[Service] | ||
User=consul | ||
Group=consul | ||
# 'EnvironmentFile' Definition überschreiben 'Environment' | ||
EnvironmentFile=-{{ _consul.config_dir }}/consul.env | ||
ExecStart=/usr/local/bin/consul agent -config-dir={{ _consul.config_dir }} $CONSUL_FLAGS | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
Restart=on-failure | ||
LimitNOFILE=65536 | ||
# Es wird explizit "append" statt "file" genutzt, da ansonsten nach dem Logrotate binäre Zeichenketten | ||
# "@^@^@^@^.." im Logfile entstehen, siehe auch: https://github.com/CenterDevice/ops/issues/262 | ||
StandardOutput=append:{{ _consul.logfile }} | ||
StandardError=inherit | ||
|
||
[Install] | ||
WantedBy=multi-user.target |