From 7e2f7e3fdea35ac4884f4a56e905f572e761619e Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 16 Nov 2024 01:46:37 +0100 Subject: [PATCH] cluster/services/ways: limit test to 3 nodes --- cluster/services/ways/default.nix | 1 + cluster/services/ways/simulacrum/test.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cluster/services/ways/default.nix b/cluster/services/ways/default.nix index 67ff6ef..6330d33 100644 --- a/cluster/services/ways/default.nix +++ b/cluster/services/ways/default.nix @@ -13,6 +13,7 @@ enable = true; deps = [ "nginx" "acme-client" "dns" "certificates" "consul" ]; settings = ./simulacrum/test.nix; + availableNodes = lib.take 3 config.services.ways.nodes.host; }; }; diff --git a/cluster/services/ways/simulacrum/test.nix b/cluster/services/ways/simulacrum/test.nix index e2b3b8e..d938a17 100644 --- a/cluster/services/ways/simulacrum/test.nix +++ b/cluster/services/ways/simulacrum/test.nix @@ -20,7 +20,7 @@ in }; }; } - (lib.genAttrs cluster.config.services.ways.nodes.host (lib.const { + (lib.genAttrs cluster.config.services.ways.simulacrum.availableNodes (lib.const { services.nginx.upstreams.nowhere.servers = { "${(builtins.head config.nodes.nowhere.networking.interfaces.eth1.ipv4.addresses).address}:8080" = {}; };