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

View file

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

View file

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