semi-spread example: name the store's CA on the machines without the store
This commit is contained in:
parent
1ad4ebdd7b
commit
250118d558
1 changed files with 36 additions and 13 deletions
|
|
@ -488,6 +488,20 @@ let
|
|||
&& lib.all (p: lib.any (a: lib.hasSuffix "/128" a) p.allowedIPs) wg.peers
|
||||
) (builtins.attrNames all);
|
||||
}
|
||||
{
|
||||
# The store's certificate is signed by its own CA, which only the store's
|
||||
# host has by default; every machine without the store names the copy.
|
||||
name = "every machine without the store checks it against the CA copied from swarm-central";
|
||||
ok =
|
||||
lib.all (n: all.${n}.services.hyperhive.deploy.bao.serverCaFile == "/var/lib/swarm-pki/ca.pem") [
|
||||
"swarm-services"
|
||||
"swarm-heavyduty"
|
||||
"hive-one"
|
||||
"hive-two"
|
||||
]
|
||||
# Control: the machine with the store keeps the CA it minted.
|
||||
&& central.services.hyperhive.deploy.bao.serverCaFile == "/var/lib/swarm-bao-pki/ca.pem";
|
||||
}
|
||||
{
|
||||
name = "a hive resolves the internal names to the IPv6 addresses as well";
|
||||
ok =
|
||||
|
|
|
|||
Loading…
Reference in a new issue