default the host's swarmctl to the gateway; login takes a callback port
This commit is contained in:
parent
ef817ed5a0
commit
58236e1b7f
1 changed files with 183 additions and 67 deletions
|
|
@ -154,14 +154,16 @@ let
|
|||
or null == "https://matrix.hive.t.local";
|
||||
}
|
||||
{
|
||||
# Login-only: `SWARMCTL_SWARM` would move every socket verb onto the
|
||||
# gateway. The socket variable is the control that the wrapper text was
|
||||
# found at all.
|
||||
name = "the host's swarmctl logs in to its own swarm by default, and its other verbs stay on the socket";
|
||||
# The host's swarmctl reaches the gateway by default and the socket only when
|
||||
# the operator empties `SWARMCTL_SWARM`: `--set-default` lets that empty value
|
||||
# through, `--set` would not. The socket variable is the control that the
|
||||
# wrapper text was found at all.
|
||||
name = "the host's swarmctl defaults to its own swarm's gateway, and an operator's own value wins";
|
||||
ok =
|
||||
lib.hasInfix "--set SWARM_CONTROLLER_SOCKET " swarmctlWrapperCmd
|
||||
&& lib.hasInfix "--set-default SWARMCTL_SWARM https://t.local" swarmctlWrapperCmd
|
||||
&& lib.hasInfix "--set-default SWARMCTL_LOGIN_DEFAULT_SWARM https://t.local" swarmctlWrapperCmd
|
||||
&& !(lib.hasInfix "SWARMCTL_SWARM" swarmctlWrapperCmd);
|
||||
&& !(lib.hasInfix "--set SWARMCTL_SWARM" swarmctlWrapperCmd);
|
||||
}
|
||||
{
|
||||
# The gateway's leaf chains to the store's root, which no system store
|
||||
|
|
|
|||
Loading…
Reference in a new issue