Trigger restart of vault-agent on key update on toothpick

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2021-09-14 21:56:15 +02:00
parent 63b8d8b7c3
commit 1f1b61004a
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -62,6 +62,7 @@ inputs: {
}; };
systemd.services.vault-agent = { systemd.services.vault-agent = {
restartTriggers = [ "/etc/vault-agent/vault.crt" "/etc/vault-agent/vault.key" ];
serviceConfig = { serviceConfig = {
ExecPreStart = "mkdir -p /var/secrets/ && chown -R vault-agent:secrets /var/secrets/"; ExecPreStart = "mkdir -p /var/secrets/ && chown -R vault-agent:secrets /var/secrets/";
}; };