chore(monitoring): separate external machines

This commit is contained in:
arcnmx 2024-06-01 14:57:57 -07:00
parent d5fb12ad9a
commit bd6f16cd4f
4 changed files with 23 additions and 8 deletions

View file

@ -157,12 +157,15 @@
};
groups = {
services = "Services";
servers = "${groups.systems}/Servers";
systems = "Systems";
forSystem = system: let
node = systems.${system.config.proxmox.node.name}.config;
in
if system.config.proxmox.enabled
then "${groups.systems}/${node.name}"
then "${groups.servers}/${node.name}"
else if system.config.access.online.available
then groups.servers
else groups.systems;
};
in {