about summary refs log tree commit diff
path: root/modules/services
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-01-07 13:35:37 -0800
committerFranck Cuny <franck@fcuny.net>2023-01-07 13:35:37 -0800
commit13d9fdcfc7405e5edaff27d8f849204f0931f4f6 (patch)
tree01bdb09645addb4eda66ae79348d2edc1e4291f4 /modules/services
parentfix(modules/grafana): a number of options have been renamed (diff)
downloadworld-13d9fdcfc7405e5edaff27d8f849204f0931f4f6.tar.gz
fix(modules/unifi): remove the poller
The poller refuses to start, as the name of the binary has been updated,
and the upstream module is not reflecting that change. The service has
also been renamed from `unifi-poller` to `unpoller`, but this is not
working for now. Let's get rid of it as a temporary fix while looking at
the correct solution.
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/unifi/default.nix32
1 files changed, 0 insertions, 32 deletions
diff --git a/modules/services/unifi/default.nix b/modules/services/unifi/default.nix
index 2b270a8..e5fc1fa 100644
--- a/modules/services/unifi/default.nix
+++ b/modules/services/unifi/default.nix
@@ -40,38 +40,6 @@ in
       unifiPackage = pkgs.unifiStable;
     };
 
-    services.unifi-poller = {
-      enable = true;
-
-      poller = {
-        quiet = true;
-      };
-      unifi.defaults = {
-        url = "https://127.0.0.1:8443";
-        user = "unifipoller";
-        pass = secrets."unifi/unifi-poller".path;
-        verify_ssl = false;
-      };
-
-      influxdb.disable = true;
-
-      prometheus = { http_listen = ":9130"; };
-    };
-
-    systemd.services.unifi-available = {
-      description = "Wait for Unifi to be available";
-      after = [ "unifi.service" ];
-      before = [ "unifi-poller.service" ];
-      wantedBy = [ "unifi-poller.service" ];
-      serviceConfig = {
-        ExecStart =
-          "${pkgs.curl}/bin/curl --insecure 'https://localhost:8443/'";
-        Restart = "on-failure";
-        RestartSec = "10";
-        Type = "oneshot";
-      };
-    };
-
     services.nginx.virtualHosts."${cfg.vhostName}" = {
       forceSSL = true;
       useACMEHost = cfg.vhostName;