From 2be650b93e9f37331a975e739c6ce99f12c53e28 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 6 Oct 2021 19:12:32 +0200 Subject: [PATCH] journalbeat: set logging host --- lib/logging.nix | 6 +++--- lib/lxc-container.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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