nix: run the forge on one host per swarm (deploy.forgejo.enable)
Every hive with hyperhive enabled ran its own hive-forge container, and its gateway answered forge.<swarm> with its own bridge IP, so on a multi-host swarm each hive talked to its own forge. deploy.forgejo.enable defaults to false and allSwarmServices sets it with mkDefault, like authelia and bao; singleHostSwarm gets it through that. The forge's OIDC client moves to a glue module gated on authelia, so a split authelia/forge swarm still registers it. CI now requires the forge on the same host, and the controller's forgeTokenFile defaults to null where the forge is not. Closes #4705 Refs #3782
This commit is contained in:
parent
21c17772b8
commit
978164dc53
15 changed files with 346 additions and 84 deletions
|
|
@ -9,9 +9,8 @@
|
|||
# declared where that config is rendered — and ./swarm-grafana.nix's whole
|
||||
# `config` block hangs off `deploy.grafana.enable`, so a swarm with Grafana and
|
||||
# authelia on different hosts registered the client nowhere at all.
|
||||
# ./hive-forge/default.nix is already on the right side of that line: its module
|
||||
# is gated on `hyperhive.enable` and only the registration asks about authelia.
|
||||
# This file puts Grafana there without moving the rest of its module.
|
||||
# ./glue-forge-oidc-client.nix does the same for the forge. This file puts
|
||||
# Grafana there without moving the rest of its module.
|
||||
#
|
||||
# ⚠️ Registered whether or not the swarm has a Grafana, because nothing in
|
||||
# `swarm.*` records that — `deploy.grafana.enable` answers "does THIS host run
|
||||
|
|
|
|||
Loading…
Reference in a new issue