start the forge mint unit from the trust refresh
a late store root dependency-fails forgejo-swarm-controller-account on first boot and the refresh never started it, so the controller got no forge token (vm-nightly #7084). list it as a trust consumer. Closes #6109
This commit is contained in:
parent
419d087702
commit
47ec47e25b
1 changed files with 23 additions and 1 deletions
|
|
@ -391,6 +391,24 @@ let
|
|||
))
|
||||
&& lib.elem "forgejo-swarm-controller-account.service" c.swarm-bridge-dns.before;
|
||||
}
|
||||
{
|
||||
# A first boot with a late store root dependency-fails forgejo and the
|
||||
# mint; the refresh's `start` is the only thing that brings the mint
|
||||
# back. The controls are the sibling consumers in the same command, and
|
||||
# the mint's `after`/`requires` on forgejo, which order the two
|
||||
# `--no-block` starts.
|
||||
name = "the forge's trust refresh starts the mint unit, and the mint stays ordered after forgejo";
|
||||
ok =
|
||||
let
|
||||
c = allLocal.containers.hive-forge.config.systemd.services;
|
||||
u = mint allLocal;
|
||||
in
|
||||
lib.hasInfix "systemctl start --no-block forgejo.service forgejo-sso-source.service forgejo-swarm-controller-account.service" c.hive-forge-ca-bundle-refresh.script
|
||||
&& lib.elem "hive-forge-ca-bundle.service" u.requires
|
||||
&& lib.elem "hive-forge-ca-bundle.service" u.after
|
||||
&& lib.elem "forgejo.service" u.after
|
||||
&& lib.elem "forgejo.service" u.requires;
|
||||
}
|
||||
{
|
||||
# The mint is in the forge container's boot wait (a oneshot in
|
||||
# `multi-user.target`), so what it waits for inside its start stays under
|
||||
|
|
|
|||
Loading…
Reference in a new issue