From fe50d53c91bad9bf0d79b158178fc1cb1f425250 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 22 Aug 2024 23:28:02 +0200 Subject: [PATCH] cluster/services/consul: define readiness target --- cluster/services/consul/ready.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cluster/services/consul/ready.nix b/cluster/services/consul/ready.nix index c1cb2f0..8e96a86 100644 --- a/cluster/services/consul/ready.nix +++ b/cluster/services/consul/ready.nix @@ -51,4 +51,9 @@ in Type = "oneshot"; }; }; + + systemd.targets.consul-ready = { + description = "Consul is Ready"; + requires = [ "consul-ready.service" ] ++ lib.optional config.services.consul.enable "consul-load-smt.service"; + }; }