Merge pull request 'clanModules/zerotier: Add assertion for moons' (#2389) from kenji/clan-core:kenji-zerotier-add-assertion into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/2389
This commit is contained in:
Mic92
2024-11-12 15:14:38 +00:00

View File

@@ -53,6 +53,10 @@ in
assertion = builtins.length roles.controller.machines == 1;
message = "The zerotier module requires exactly one controller, but found ${builtins.toString roles.controller.machines}";
}
{
assertion = builtins.length roles.moons.machines <= 7;
message = "The zerotier module allows at most for seven moons , but found ${builtins.toString roles.moons.machines}";
}
];
clan.core.networking.zerotier.networkId = networkId;