From 1f1b61004a242e3809cffd0a29f008444f88e390 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Tue, 14 Sep 2021 21:56:15 +0200 Subject: [PATCH] Trigger restart of vault-agent on key update on toothpick Signed-off-by: Magic_RB --- nix/systems/toothpick.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/systems/toothpick.nix b/nix/systems/toothpick.nix index bb50ca6..3dc8b44 100644 --- a/nix/systems/toothpick.nix +++ b/nix/systems/toothpick.nix @@ -62,6 +62,7 @@ inputs: { }; systemd.services.vault-agent = { + restartTriggers = [ "/etc/vault-agent/vault.crt" "/etc/vault-agent/vault.key" ]; serviceConfig = { ExecPreStart = "mkdir -p /var/secrets/ && chown -R vault-agent:secrets /var/secrets/"; };