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:
@@ -53,6 +53,10 @@ in
|
|||||||
assertion = builtins.length roles.controller.machines == 1;
|
assertion = builtins.length roles.controller.machines == 1;
|
||||||
message = "The zerotier module requires exactly one controller, but found ${builtins.toString roles.controller.machines}";
|
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;
|
clan.core.networking.zerotier.networkId = networkId;
|
||||||
|
|||||||
Reference in New Issue
Block a user