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
No related branches found
No related tags found
2 merge requests!264merge develop into production,!234Collect some monitoring host details automatically.
Pipeline #1636 passed
...@@ -82,6 +82,17 @@ in { ...@@ -82,6 +82,17 @@ in {
}; };
config = { 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 [ deployment.secrets = lib.mkMerge [
{ {
"monitoringvpn-private-key" = { "monitoringvpn-private-key" = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment