]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add contact group for Raito secondary DNS
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 11 Oct 2023 22:50:39 +0000 (00:50 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 11 Oct 2023 22:55:02 +0000 (00:55 +0200)
deploy/flake.lock
flake.lock
flakes/flake.lock
systems/eldiron/dns.nix

index c612aef3a1a624b6f5f0831de8a4f47972033539..e499dc003641bbd19b5d7c13bd3d5ce18a8e9839 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-YmxnhQgbNWYxJKGgLz0x2EDmbp/1aOVyO/b+rS2zP0w=",
+        "narHash": "sha256-8hruoAYeX7Oczb6tu7lDDOZKFbAdHp6I7mC+K1C4itw=",
         "path": "../flakes",
         "type": "path"
       },
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-0V71uNTospNTAWsRuCBmTUtes7ECx9D83d/UOtHOek8=",
+        "narHash": "sha256-oOl1flplnhPOMDiuQyvwS8iSP2caYyK9heTQPzlCNmo=",
         "path": "../systems/eldiron",
         "type": "path"
       },
         "nixpkgs": "nixpkgs_106"
       },
       "locked": {
-        "lastModified": 1697062813,
-        "narHash": "sha256-pbS3ZgZzCkbL3XO0DpoqQU4JHOMd980vTPX4seMH+U8=",
+        "lastModified": 1697064736,
+        "narHash": "sha256-kVSGqn6rmXnalgpVsRTxYsRCTWCa1dJByLJU/WudTEA=",
         "ref": "master",
-        "rev": "6f65e826f8baaf08a651366f8e05b58d6a7326ad",
-        "revCount": 701,
+        "rev": "2cdb86ed84d3110ec30c9d7869ba011e750d6df8",
+        "revCount": 702,
         "type": "git",
         "url": "git+ssh://gitolite@git.immae.eu/perso/Immae/Config/Nix/Nixops/Secrets"
       },
index 5647e9e8550a42c4c4ca60aa9e32fd88dce3f89a..92e34d86e27b6853915e3b593b33b4bd4f01218f 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-YmxnhQgbNWYxJKGgLz0x2EDmbp/1aOVyO/b+rS2zP0w=",
+        "narHash": "sha256-8hruoAYeX7Oczb6tu7lDDOZKFbAdHp6I7mC+K1C4itw=",
         "path": "./flakes",
         "type": "path"
       },
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-0V71uNTospNTAWsRuCBmTUtes7ECx9D83d/UOtHOek8=",
+        "narHash": "sha256-oOl1flplnhPOMDiuQyvwS8iSP2caYyK9heTQPzlCNmo=",
         "path": "../systems/eldiron",
         "type": "path"
       },
index 938fbf62aaf9e0a2f170d6e8300f3415a09b239b..26f5d4ab78546716a6bd9478bb3c732d1ff6ce90 100644 (file)
       },
       "locked": {
         "lastModified": 1,
-        "narHash": "sha256-0V71uNTospNTAWsRuCBmTUtes7ECx9D83d/UOtHOek8=",
+        "narHash": "sha256-oOl1flplnhPOMDiuQyvwS8iSP2caYyK9heTQPzlCNmo=",
         "path": "../systems/eldiron",
         "type": "path"
       },
index 7645b69494261501914de5d40f80e977234104a8..857b233cefd6d868db4cfee287a658974229dea9 100644 (file)
@@ -303,6 +303,10 @@ in
         install -dm755 -o named /var/lib/named/dnssec_keys
       '');
     myServices.monitoring.fromMasterActivatedPlugins = [ "dns" ];
+    myServices.monitoring.fromMasterObjects.contactgroup.dns-raito = {
+      alias = "Secondary DNS Raito";
+      members = "immae";
+    };
     myServices.monitoring.fromMasterObjects.service = lib.mkMerge (lib.mapAttrsToList (name: z:
       lib.optional (builtins.elem "immae" z.ns) {
         service_description = "eldiron dns is active and authoritative for ${name}";
@@ -319,6 +323,7 @@ in
           host_name = config.hostEnv.fqdn;
           use = "dns-service";
           check_command = ["check_external_dns" "kurisu.dual.lahfa.xyz" name "-A"];
+          contact_groups = "dns-raito";
 
           servicegroups = "webstatus-dns";
           _webstatus_name = "${name} (Secondary DNS Raito)";
@@ -328,6 +333,7 @@ in
           host_name = config.hostEnv.fqdn;
           use = "dns-service";
           check_command = ["check_dns_soa" "kurisu.dual.lahfa.xyz" name config.hostEnv.fqdn];
+          contact_groups = "dns-raito";
 
           servicegroups = "webstatus-dns";
           _webstatus_name = "${name} (Secondary DNS Raito up to date)";