let the store container's cold start finish, and order its readers after it
This commit is contained in:
parent
0e840bd34b
commit
b1c828dbf8
1 changed files with 48 additions and 4 deletions
|
|
@ -30,6 +30,10 @@ let
|
|||
|
||||
credentialFile = "/run/credstore/${hyperhiveCfg.deploy.hive-controller.squid.selfcheck.credentialName}";
|
||||
|
||||
# Where the store runs on this host, its container is up before the first
|
||||
# login attempt instead of failing against a store that is still starting.
|
||||
storeContainer = lib.optional baoDeploy.enable "container@${baoCfg.machine}.service";
|
||||
|
||||
storeRetry = import ./lib/store-retry.nix { };
|
||||
storeRefreshTimer = import ./lib/store-refresh-timer.nix { };
|
||||
in
|
||||
|
|
@ -39,11 +43,12 @@ in
|
|||
description = "Read the squid self-check's password from the swarm secret store";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
before = [ "squid-selfcheck.service" ];
|
||||
wants = [ "network-online.target" ];
|
||||
wants = [ "network-online.target" ] ++ storeContainer;
|
||||
after = [
|
||||
"network-online.target"
|
||||
"systemd-tmpfiles-setup.service"
|
||||
];
|
||||
]
|
||||
++ storeContainer;
|
||||
path = [
|
||||
baoDeploy.package
|
||||
pkgs.coreutils
|
||||
|
|
|
|||
Loading…
Reference in a new issue