Set up data-mesher
This service is experimental and will change in the future.
This service will set up data-mesher.
inventory.instances = {
data-mesher = {
module = {
name = "data-mesher";
input = "clan-core";
};
roles.admin.machines.server0 = {
settings = {
bootstrapNodes = {
node1 = "192.168.1.1:7946";
node2 = "192.168.1.2:7946";
};
network = {
hostTTL = "24h";
interface = "tailscale0";
};
};
};
roles.peer.machines.server1 = { };
roles.signer.machines.server2 = { };
};
} The data-mesher service has the following roles:
admin roleA list of bootstrap nodes that act as an initial gateway when joining the cluster.
Type: null or (list of string)
[
"192.168.1.1:7946"
"192.168.1.2:7946"
]Declared in: clanServices/data-mesher/default.nix
A list of extra hostnames to claim for this machine.
Type: list of string
Default:
[ ] Declared in: clanServices/data-mesher/default.nix
The TTL for hosts in the network, in the form of a Go time.Duration
Type: string
Default:
"672h" "24h"Declared in: clanServices/data-mesher/default.nix
The interface over which cluster communication should be performed. All the ip addresses associate with this interface will be part of our host claim, including both ipv4 and ipv6.
This should be set to an internal/VPN interface.
Type: string
"tailscale0"Declared in: clanServices/data-mesher/default.nix
Port to listen on for cluster communication.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
7946 Declared in: clanServices/data-mesher/default.nix
Top level domain to use for the network
Type: string
Default:
"clan" Declared in: clanServices/data-mesher/default.nix
peer roleA list of bootstrap nodes that act as an initial gateway when joining the cluster.
Type: null or (list of string)
[
"192.168.1.1:7946"
"192.168.1.2:7946"
]Declared in: clanServices/data-mesher/default.nix
A list of extra hostnames to claim for this machine.
Type: list of string
Default:
[ ] Declared in: clanServices/data-mesher/default.nix
The interface over which cluster communication should be performed. All the ip addresses associate with this interface will be part of our host claim, including both ipv4 and ipv6.
This should be set to an internal/VPN interface.
Type: string
"tailscale0"Declared in: clanServices/data-mesher/default.nix
Port to listen on for cluster communication.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
7946 Declared in: clanServices/data-mesher/default.nix
signer roleA list of bootstrap nodes that act as an initial gateway when joining the cluster.
Type: null or (list of string)
[
"192.168.1.1:7946"
"192.168.1.2:7946"
]Declared in: clanServices/data-mesher/default.nix
A list of extra hostnames to claim for this machine.
Type: list of string
Default:
[ ] Declared in: clanServices/data-mesher/default.nix
The interface over which cluster communication should be performed. All the ip addresses associate with this interface will be part of our host claim, including both ipv4 and ipv6.
This should be set to an internal/VPN interface.
Type: string
"tailscale0"Declared in: clanServices/data-mesher/default.nix
Port to listen on for cluster communication.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default:
7946 Declared in: clanServices/data-mesher/default.nix