too lazy to think of a message, so enjoy this pointless text. Good luck future me...
This commit is contained in:
parent
2ae7d62d29
commit
09e6d0f14e
1 changed files with 5 additions and 5 deletions
|
|
@ -42,7 +42,7 @@ in
|
|||
secret = false;
|
||||
};
|
||||
token = {
|
||||
deploy = false;
|
||||
deploy = true;
|
||||
secret = true;
|
||||
};
|
||||
};
|
||||
|
|
@ -70,7 +70,7 @@ in
|
|||
services.k3s = {
|
||||
enable = true;
|
||||
role = "server";
|
||||
token = config.clan.core.vars.generators.k3s.files.token.value;
|
||||
tokenFile = config.clan.core.vars.generators.k3s.files.token.path;
|
||||
clusterInit = true;
|
||||
};
|
||||
};
|
||||
|
|
@ -97,8 +97,8 @@ in
|
|||
ipAddress = if pathExists ipAddressPath then readFile ipAddressPath else null;
|
||||
|
||||
# Read the controller's token
|
||||
tokenPath = "${config.clan.core.settings.directory}/vars/per-machine/${controller}/k3s/token";
|
||||
token = if pathExists tokenPath then readFile tokenPath else null;
|
||||
# tokenPath = "${config.clan.core.settings.directory}/vars/per-machine/${controller}/k3s/token";
|
||||
# token = if pathExists tokenPath then readFile tokenPath else null;
|
||||
in
|
||||
{
|
||||
networking.firewall = {
|
||||
|
|
@ -117,7 +117,7 @@ in
|
|||
k3s = {
|
||||
enable = true;
|
||||
role = "agent";
|
||||
token = token;
|
||||
tokenFile = config.clan.core.vars.generators.k3s.files.token.path;
|
||||
serverAddr = "https://${ipAddress}:6443";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue