Zerotier/constraints: small improvements
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
description = "Configures [Zerotier VPN](https://zerotier.com) secure and efficient networking within a Clan.."
|
||||
features = [ "inventory" ]
|
||||
|
||||
constraints.roles.controller.eq = 1
|
||||
constraints.roles.moon.max = 7
|
||||
[constraints]
|
||||
roles.controller.min = 1
|
||||
roles.controller.max = 1
|
||||
roles.moon.max = 7
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -48,7 +48,7 @@ in
|
||||
# TODO: This should also be checked via frontmatter constraints
|
||||
{
|
||||
assertion = builtins.length instanceNames == 1;
|
||||
message = "The zerotier module currently only supports one instance per machine, but found ${builtins.toString instanceNames}";
|
||||
message = "The zerotier module currently only supports one instance per machine, but found ${builtins.toString instanceNames} on machine ${config.clan.core.machineName}";
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
},
|
||||
"services": {
|
||||
"zerotier": {
|
||||
"1": {
|
||||
"one": {
|
||||
"roles": {
|
||||
"controller": {
|
||||
"machines": ["test-inventory-machine"]
|
||||
|
||||
Reference in New Issue
Block a user