warn when the in-swarm cache runs under another domain
This commit is contained in:
parent
74f463c40e
commit
4f32948a97
1 changed files with 37 additions and 0 deletions
|
|
@ -223,6 +223,23 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
# Not an assertion: a cache served under a name of the operator's own is a
|
||||
# working setup, and an assertion would fail it.
|
||||
warnings = lib.optional (atticCfg.domain != atticCfg.ownDomain) ''
|
||||
services.hyperhive.deploy.attic.enable is on while
|
||||
services.hyperhive.swarm.attic.domain is "${toString atticCfg.domain}", not
|
||||
the swarm cache's own name "${atticCfg.ownDomain}". This host runs the
|
||||
swarm's cache and its gateway serves that name, so pushes to an external
|
||||
cache there fail the certificate check.
|
||||
|
||||
For an external cache, set
|
||||
services.hyperhive.deploy.attic.enable = lib.mkForce false; where the
|
||||
shared services are hosted ("To use an external cache, override the two
|
||||
defaults and don't set `deploy.attic.enable` anywhere", docs/swarm/builder.md).
|
||||
For the swarm's own cache, drop the override of
|
||||
services.hyperhive.swarm.attic.domain.
|
||||
'';
|
||||
|
||||
# nspawn fails to start the container when a credential source is
|
||||
# missing, so where this host mints the leaf the container waits for it. The
|
||||
# CA ordering keeps the trust bundle's bind source there first.
|
||||
|
|
|
|||
Loading…
Reference in a new issue