mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 10:13:26 +02:00
21 lines
546 B
Django/Jinja
21 lines
546 B
Django/Jinja
[Unit]
|
|
Description="HashiCorp consul-template"
|
|
Documentation=https://github.com/hashicorp/consul-template
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
After=vault.service
|
|
ConditionFileNotEmpty={{ vault_root_dir }}/consul-template/consul-template.hcl
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/consul-template -config={{ vault_root_dir }}/consul-template/consul-template.hcl
|
|
SuccessExitStatus=12
|
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
|
KillSignal=SIGINT
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|