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
|
|
@ -43,6 +43,10 @@ let
|
|||
|
||||
dir = "/run/hyperhive-priv/attic";
|
||||
|
||||
# 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
|
||||
|
|
@ -58,11 +62,12 @@ in
|
|||
systemd.services.hive-priv-cache-facts = {
|
||||
description = "Read the swarm cache's public key and pull token for hive-priv";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
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