Skip to content
Snippets Groups Projects
Commit 8aff75b7 authored by Florian Sesser's avatar Florian Sesser
Browse files

Merge branch '207.reuse-vpn-server-ip-configuration' into...

Merge branch '207.reuse-vpn-server-ip-configuration' into '207.payment-server-exception-reporting-update'

Read the VPN server IP address from the monitoring node config

See merge request privatestorage/PrivateStorageio!257
parents c0b39e95 0eee7f76
Branches
No related tags found
No related merge requests found
# This module contains settings and configuration that apply to all nodes in a grid. # This module contains settings and configuration that apply to all nodes in a grid.
{ lib, config, ...}: { lib, config, nodes, ...}:
{ {
options.grid = { options.grid = {
publicKeyPath = lib.mkOption { publicKeyPath = lib.mkOption {
...@@ -59,7 +59,9 @@ ...@@ -59,7 +59,9 @@
networking.hosts = { networking.hosts = {
# To stream logs to the monitoring host, all nodes need to know its address # 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; services.private-storage.monitoring.exporters.promtail.enable = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment