From e9d709f5078a6f38958078d430b73f06eafa8c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 1 Sep 2023 13:42:26 +0300 Subject: [PATCH] add motiejus_bk2 properly --- flake.nix | 2 ++ hosts/vno1-oh2/configuration.nix | 6 ++++++ secrets.nix | 1 + secrets/{motiejus-bk2.txt => motiejus_bk2.pub.txt} | 0 4 files changed, 9 insertions(+) rename secrets/{motiejus-bk2.txt => motiejus_bk2.pub.txt} (100%) diff --git a/flake.nix b/flake.nix index b3584a9..896c720 100644 --- a/flake.nix +++ b/flake.nix @@ -173,5 +173,7 @@ }; formatter = pkgs.alejandra; + + packages.snmp-yaml = pkgs.callPackage ./packages/snmp-yaml {}; }); } diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index 21324d6..4e40f14 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -300,6 +300,12 @@ evaluation_interval = "15s"; }; + exporters.snmp = { + enable = true; + listenAddress = "127.0.0.1"; + configuration = {}; + }; + scrapeConfigs = let port = builtins.toString myData.ports.exporters.node; in [ diff --git a/secrets.nix b/secrets.nix index 4a065ee..52a72e6 100644 --- a/secrets.nix +++ b/secrets.nix @@ -2,6 +2,7 @@ let motiejus_yk1 = "age1yubikey1qtwmhf7h7ljs3dyx06wyzme4st6w4calkdpmsxgpxc9t2cldezvasd6n8wg"; motiejus_yk2 = "age1yubikey1qgyvs2ul0enzqf4sscq96zyxk73jnj4lknpemak2hp39lejdwc0s5uzzhpc"; motiejus_bk1 = "age1kyehn8yr9tfu3w0z4d9p9qrj0tjjh92ljxmz2nyr6xnm7y8kpv5spwwc9n"; + motiejus_bk2 = "age14f39j0wx84n93lgqn6d9gcd3yhuwak6qwrxy8v83ydn7266uafts09ecva"; motiejus = [motiejus_yk1 motiejus_yk2 motiejus_bk1]; fra1-a = (import ./data.nix).hosts."fra1-a.servers.jakst".publicKey; diff --git a/secrets/motiejus-bk2.txt b/secrets/motiejus_bk2.pub.txt similarity index 100% rename from secrets/motiejus-bk2.txt rename to secrets/motiejus_bk2.pub.txt