renew_vault_certificates/templates/vault-certs.service.j2

16 lines
569 B
Django/Jinja

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