Skip to content
Snippets Groups Projects
Commit 172f6c54 authored by Tom Prince's avatar Tom Prince
Browse files

Add an assertion that monitored nodes have different VPN IP addresses.

parent 783bcf7b
Branches
No related tags found
No related merge requests found
......@@ -82,6 +82,17 @@ in {
};
config = {
assertions = [
{
assertion = let
vpnIPs = (map (node: node.vpnIPv4) monitoringHosts);
in vpnIPs == lib.unique vpnIPs;
message = ''
Duplicate grid.monitoringvpnIPv4 values specified for different nodes.
'';
}
];
deployment.secrets = lib.mkMerge [
{
"monitoringvpn-private-key" = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment