Compare commits

..

No commits in common. "5853b69982c7911cd378bcb3c1bd7253b12e15ad" and "88fa396e31f1d153b9e5158fc5fe9d03e7022d51" have entirely different histories.

4 changed files with 2 additions and 4 deletions

View file

@ -25,7 +25,7 @@ in
bind_addr = hl.ipv4; bind_addr = hl.ipv4;
ports.serf_lan = hl.port; ports.serf_lan = hl.port;
retry_join = map (hostName: hostLinks.${hostName}.consul.tuple) (cfg.otherNodes.agent hostName); retry_join = map (hostName: hostLinks.${hostName}.consul.tuple) (cfg.otherNodes.agent hostName);
bootstrap_expect = 3; bootstrap_expect = builtins.length cfg.nodes.agent;
addresses.http = config.links.consulAgent.ipv4; addresses.http = config.links.consulAgent.ipv4;
ports.http = config.links.consulAgent.port; ports.http = config.links.consulAgent.port;
}; };

View file

@ -60,7 +60,6 @@ in
enable = true; enable = true;
deps = [ "consul" "acme-client" "patroni" ]; deps = [ "consul" "acme-client" "patroni" ];
settings = ./test.nix; settings = ./test.nix;
availableNodes = cfg.nodes.authoritative;
}; };
}; };

View file

@ -13,7 +13,6 @@
enable = true; enable = true;
deps = [ "nginx" "acme-client" "dns" "certificates" "consul" ]; deps = [ "nginx" "acme-client" "dns" "certificates" "consul" ];
settings = ./simulacrum/test.nix; settings = ./simulacrum/test.nix;
availableNodes = lib.take 3 config.services.ways.nodes.host;
}; };
}; };

View file

@ -20,7 +20,7 @@ in
}; };
}; };
} }
(lib.genAttrs cluster.config.services.ways.simulacrum.availableNodes (lib.const { (lib.genAttrs cluster.config.services.ways.nodes.host (lib.const {
services.nginx.upstreams.nowhere.servers = { services.nginx.upstreams.nowhere.servers = {
"${(builtins.head config.nodes.nowhere.networking.interfaces.eth1.ipv4.addresses).address}:8080" = {}; "${(builtins.head config.nodes.nowhere.networking.interfaces.eth1.ipv4.addresses).address}:8080" = {};
}; };