From 7330e804567e4cf05c3aac880a0518875f0a5b54 Mon Sep 17 00:00:00 2001 From: Volth Date: Wed, 28 Jun 2017 00:58:19 +0000 Subject: [PATCH] vault: start after consul if consul is used as storage backend --- nixos/modules/services/security/vault.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/security/vault.nix b/nixos/modules/services/security/vault.nix index 2f4935ee1a32..1d93ff210070 100644 --- a/nixos/modules/services/security/vault.nix +++ b/nixos/modules/services/security/vault.nix @@ -93,7 +93,8 @@ in description = "Vault server daemon"; wantedBy = ["multi-user.target"]; - after = [ "network.target" ]; + after = [ "network.target" ] + ++ optional (config.services.consul.enable && cfg.storageBackend == "consul") "consul.service"; preStart = optionalString (cfg.storageBackend == "file" || cfg.storageBackend == "file_transactional")