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.."
|
description = "Configures [Zerotier VPN](https://zerotier.com) secure and efficient networking within a Clan.."
|
||||||
features = [ "inventory" ]
|
features = [ "inventory" ]
|
||||||
|
|
||||||
constraints.roles.controller.eq = 1
|
[constraints]
|
||||||
constraints.roles.moon.max = 7
|
roles.controller.min = 1
|
||||||
|
roles.controller.max = 1
|
||||||
|
roles.moon.max = 7
|
||||||
---
|
---
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ in
|
|||||||
# TODO: This should also be checked via frontmatter constraints
|
# TODO: This should also be checked via frontmatter constraints
|
||||||
{
|
{
|
||||||
assertion = builtins.length instanceNames == 1;
|
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": {
|
"services": {
|
||||||
"zerotier": {
|
"zerotier": {
|
||||||
"1": {
|
"one": {
|
||||||
"roles": {
|
"roles": {
|
||||||
"controller": {
|
"controller": {
|
||||||
"machines": ["test-inventory-machine"]
|
"machines": ["test-inventory-machine"]
|
||||||
|
|||||||
Reference in New Issue
Block a user