Skip to content
Snippets Groups Projects

Read the VPN server IP address from the monitoring node config

Compare and
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
# This module contains settings and configuration that apply to all nodes in a grid.
{ lib, config, ...}:
{ lib, config, nodes, ...}:
{
options.grid = {
publicKeyPath = lib.mkOption {
@@ -59,7 +59,9 @@
networking.hosts = {
# To stream logs to the monitoring host, all nodes need to know its address
"172.23.23.1" = [ "monitoring" "monitoring.monitoringvpn" ];
${nodes.monitoring.config.services.private-storage.monitoring.vpn.server.ip} = [
"monitoring" "monitoring.monitoringvpn"
];
};
services.private-storage.monitoring.exporters.promtail.enable = true;
Loading