diff --git a/lib/logging.nix b/lib/logging.nix index 3bfb7ce8..37a29298 100644 --- a/lib/logging.nix +++ b/lib/logging.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ hostRegistry, config, pkgs, lib, ... }: let @@ -47,8 +47,8 @@ in { output.logstash: # Boolean flag to enable or disable the output module. enabled: true - hosts: ["logging.serv.zentralwerk.org:5044", "172.20.73.13:5044"] - ''; + hosts: ["${hostRegistry.hosts.logging.ip4}:5044"] + ''; }; services.prometheus.exporters.node.enable = true; diff --git a/lib/lxc-container.nix b/lib/lxc-container.nix index 8a5b55f1..3ea20211 100644 --- a/lib/lxc-container.nix +++ b/lib/lxc-container.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, modulesPath, ... }: +{ hostRegistry, config, pkgs, lib, modulesPath, ... }: { imports = [ @@ -74,8 +74,8 @@ output.logstash: # Boolean flag to enable or disable the output module. enabled: true - hosts: ["logging.serv.zentralwerk.org:5044", "172.20.73.13:5044"] - ''; + hosts: ["${hostRegistry.hosts.logging.ip4}:5044"] + ''; }; # Required for remote deployment