Compare commits
2 Commits
2cdf09c5ae
...
04ab06218c
Author | SHA1 | Date | |
---|---|---|---|
04ab06218c | |||
5ebe26caf8 |
@ -134,6 +134,8 @@
|
|||||||
uptimestatus;
|
uptimestatus;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
inherit lib self;
|
||||||
|
|
||||||
hydraJobs = {
|
hydraJobs = {
|
||||||
inherit (self)
|
inherit (self)
|
||||||
packages;
|
packages;
|
||||||
|
@ -141,5 +141,17 @@
|
|||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
clerie.system-auto-upgrade = {
|
||||||
|
allowReboot = true;
|
||||||
|
autoUpgrade = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
clerie.monitoring = {
|
||||||
|
enable = true;
|
||||||
|
id = "399";
|
||||||
|
pubkey = "K7NkCFKSnMIgC0D5wejSpty56AYacfxE+feMsfWtHSo=";
|
||||||
|
bird = true;
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "21.03";
|
system.stateVersion = "21.03";
|
||||||
}
|
}
|
||||||
|
9
hosts/dn42-ildix-clerie/secrets/wg-monitoring.age
Normal file
9
hosts/dn42-ildix-clerie/secrets/wg-monitoring.age
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 HwR33w 8zOolyGJvZ/2INs4yS7pFci+ktyEjOsGaff7+5HkEh4
|
||||||
|
HWXI2uYLIfutJ9PrJbwuH02GLNF/bJLVAd1prLbSk6o
|
||||||
|
-> ssh-ed25519 RyOjvA Fp4D7amm2EPSp5VyN7N99S10U3p1ITe+nhY+UVs64W8
|
||||||
|
xWfbN92OvHDrAvwYtnJfcwKuGtN68fN82/otWYbDiFs
|
||||||
|
-> '&&2PA(-grease O @2r[ u
|
||||||
|
5pJJ/ZfFB46scMhGo7wQY4r5gH2UZxZvt6sCOlyJ4uy+VVj8FZAShrBo
|
||||||
|
--- NncgnJg/91wjSyXj21jb0SkMuSsN3MciRpeI2pmKjco
|
||||||
|
ý€œ¤1¡UÂ’/HwwŸ¾ÇòÏÏÐ@<40>QþSþX<C3BE>tŸo[Z†c<E280A0>šq\ÿòbWǤՅER¨Š«é .Eð‘5»F4„IC<49>½3èÈΘ÷º
|
@ -40,6 +40,18 @@
|
|||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
||||||
|
clerie.system-auto-upgrade = {
|
||||||
|
allowReboot = true;
|
||||||
|
autoUpgrade = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
clerie.monitoring = {
|
||||||
|
enable = true;
|
||||||
|
id = "391";
|
||||||
|
pubkey = "Rfu2JLxAk0seAZgt43sOEAF69Z9uQaOjeNgM4jJF0h4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
hosts/dn42-ildix-service/secrets/wg-monitoring.age
Normal file
9
hosts/dn42-ildix-service/secrets/wg-monitoring.age
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 HwR33w JKCBhuwIMcH042SNcp+OQjgvpMogmXH9who0wy9Jh2g
|
||||||
|
waaOvyKbg8AVEQ8BnLONus0y237GK8do0nOWovYv/Hg
|
||||||
|
-> ssh-ed25519 7zj2eQ cMRXtuy4Jsl4X/qstN3wxztrEfCh+lz48+jn9cEO614
|
||||||
|
/LcwitDqSk7yEFqUeJvpWo+6lqTI8UjuBi03JxRTx/A
|
||||||
|
-> .-grease sMU_}
|
||||||
|
NOvvGJmEfeBYR6Q
|
||||||
|
--- ju0+LEUzdv2AW1Zaf1/YBo5+5ZKc+XhYUOt/p/NqYWU
|
||||||
|
Ä"'‘oč©®9@1źF&Ż'VÇ︪whĆ$3kj›®<E280BA>v¦őę&ŰOŔ$}śN€W–p[ôČeÚM
˙eĉĚCďE‹@ÖĚü’ÚSc1
|
13
lib/clerie-monitoring-ids.nix
Normal file
13
lib/clerie-monitoring-ids.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
inputs:
|
||||||
|
|
||||||
|
with inputs.nixpkgs.lib;
|
||||||
|
|
||||||
|
rec {
|
||||||
|
monitoringIdForHost = host: let
|
||||||
|
evalResult = builtins.tryEval (attrByPath [ "clerie" "monitoring" "id" ] null host.config);
|
||||||
|
in
|
||||||
|
if evalResult.success then evalResult.value else null;
|
||||||
|
monitoringIdsByHost = hosts: filterAttrs (name: id: id != null) (mapAttrs (name: host: monitoringIdForHost host) hosts);
|
||||||
|
hostsByMonitoringIds = hosts: mapAttrs' (name: id: nameValuePair id name) (monitoringIdsByHost hosts);
|
||||||
|
monitoringIds = hosts: attrNames (hostsByMonitoringIds hosts);
|
||||||
|
}
|
@ -14,6 +14,7 @@ let
|
|||||||
generateColmenaHost
|
generateColmenaHost
|
||||||
mapToColmenaHosts
|
mapToColmenaHosts
|
||||||
buildHosts;
|
buildHosts;
|
||||||
|
clerie-monitoring-ids = callLibs ./clerie-monitoring-ids.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user