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
|
|
@ -3,8 +3,8 @@
|
|||
let
|
||||
hyperhive = config.services.hyperhive;
|
||||
|
||||
# Leaves copied from swarm-central, where the secret store runs. See
|
||||
# swarm-services.nix for the helper's naming.
|
||||
# The store's CA and the leaves, copied from swarm-central, where the secret
|
||||
# store runs. See swarm-services.nix for the helper's naming.
|
||||
pki = "/var/lib/swarm-pki";
|
||||
pair = option: stem: {
|
||||
"${option}ClientCertFile" = "${pki}/${stem}.pem";
|
||||
|
|
@ -23,6 +23,7 @@ in
|
|||
});
|
||||
|
||||
deploy.bao = lib.mergeAttrsList [
|
||||
{ serverCaFile = "${pki}/ca.pem"; }
|
||||
(pair "builder" "builder")
|
||||
(pair "ciRunner" "ci-runner")
|
||||
(pair "attic" "attic")
|
||||
|
|
|
|||
Loading…
Reference in a new issue