2023-04-17 20:45:59 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Automatic renewal of vault certificate using consul-template
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target vault.service
|
2023-04-18 20:56:15 +00:00
|
|
|
ConditionFileNotEmpty={{ renew_vault_certificates_config_dir }}/vault_config.hcl
|
2023-04-17 20:45:59 +00:00
|
|
|
|
|
|
|
[Service]
|
2023-04-18 20:56:15 +00:00
|
|
|
User={{ renew_vault_certificates_vault_user }}
|
|
|
|
Group={{ renew_vault_certificates_vault_group }}
|
2023-04-17 20:45:59 +00:00
|
|
|
ExecStart=/usr/bin/consul-template $OPTIONS -config={{ renew_vault_certificates_config_dir }}/vault_config.hcl
|
2023-04-18 20:56:15 +00:00
|
|
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
2023-04-17 20:45:59 +00:00
|
|
|
KillSignal=SIGINT
|
2023-04-18 20:56:15 +00:00
|
|
|
Restart=on-failure
|
2023-04-17 20:45:59 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|