cluster/services/storage: split garage config for tests

This commit is contained in:
Max Headroom 2023-11-03 20:57:35 +01:00
parent 8f8c2bc0ce
commit 4f49aad9dd
3 changed files with 11 additions and 7 deletions

View file

@ -14,6 +14,7 @@ in
external = [ "prophet" ];
heresy = [ "VEGAS" ];
garage = [ "prophet" "VEGAS" ];
garageConfig = [ "prophet" "VEGAS" ];
garageInternal = [ "VEGAS" ];
garageExternal = [ "prophet" ];
};
@ -24,6 +25,8 @@ in
./garage.nix
./garage-options.nix
./garage-layout.nix
];
garageConfig = [
./garage-gateway.nix
{
services.garage = {

View file

@ -1,11 +1,6 @@
{
system.ascensions.garage-layout = {
distributed = true;
requiredBy = [ "garage.service" ];
after = [ "garage.service" "garage-layout-init.service" ];
incantations = i: [
system.ascensions.garage-layout.incantations = i: [
];
};
services.garage.layout.initial = {
prophet = { zone = "eu-central"; capacity = 1000; };

View file

@ -20,6 +20,12 @@ in
group = "garage";
};
system.ascensions.garage-layout = {
distributed = true;
requiredBy = [ "garage.service" ];
after = [ "garage.service" "garage-layout-init.service" ];
};
services.garage = {
enable = true;
package = depot.packages.garage;