cluster/services/frangiclave: test in simulacrum WIP
This commit is contained in:
parent
e4f09218d5
commit
e2fe73039c
2 changed files with 15 additions and 0 deletions
|
@ -18,5 +18,10 @@
|
|||
cluster = [];
|
||||
agent = [];
|
||||
};
|
||||
simulacrum = {
|
||||
enable = true;
|
||||
deps = [ "wireguard" "consul" ];
|
||||
settings = ./test.nix;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
10
cluster/services/frangiclave/test.nix
Normal file
10
cluster/services/frangiclave/test.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
interactive.defaults = { cluster, config, ... }: {
|
||||
config = lib.mkIf config.services.vault.enable {
|
||||
environment.variables.VAULT_ADDR = cluster.config.hostLinks.${config.networking.hostName}.frangiclave-server.url;
|
||||
environment.systemPackages = [ config.services.vault.package ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue