17 lines
656 B
Plaintext
17 lines
656 B
Plaintext
|
[Unit]
|
||
|
Description=Automatic renewal of consul certificate using consul-template
|
||
|
Requires=network-online.target
|
||
|
After=network-online.target consul.service
|
||
|
ConditionFileNotEmpty={{ renew_consul_certificates_config_dir }}/consul_config.hcl
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=-{{ renew_consul_certificates_config_dir }}/consul-certs.env
|
||
|
User={{ renew_consul_certificates_consul_user }}
|
||
|
Group={{ renew_consul_certificates_consul_group }}
|
||
|
ExecStart=/usr/bin/consul-template $OPTIONS -config={{ renew_consul_certificates_config_dir }}/consul_config.hcl
|
||
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
||
|
KillSignal=SIGINT
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|