@cryptotaxi247 / infra-1 / commits / 32739b5f

eris: remove dependency on nixops 'resources' and manually list the few remaining nixops managed hosts

Pierre Bourdon committed Jan 12, 2024 at 03:05 UTC 32739b5f6cbff2146afc4104e41f99f264762c98
1 file changed +11 -3
delft/eris.nix
+11 -3
@@ -1,4 +1,4 @@
1 -{ resources, options, config, lib, pkgs, ... }:
1 +{ options, config, lib, pkgs, ... }:
2 let
3 inherit (lib) filterAttrs flip mapAttrsToList;
4 in
@@ -268,8 +268,16 @@ in
268 job_name = "node";
269 static_configs = [
270 {
271 - targets = flip mapAttrsToList resources.machines (machine: v: "${v.networking.hostName}:9100");
272 - labels.role = "unknown";
271 + targets = [
272 + "rhea:9100"
273 + ];
274 + labels.role = "hydra";
275 + }
276 + {
277 + targets = [
278 + "eris:9100"
279 + ];
280 + labels.role = "monitoring";
281 }
282 {
283 targets = [