Added consul server config

This commit is contained in:
marc
2024-02-13 00:07:13 +01:00
parent ae58914cc2
commit a09aedab3f
17 changed files with 112 additions and 44 deletions

View File

@@ -20,6 +20,9 @@ in
enable = true;
extraSettingsPaths = [ "/etc/nomad.d" ];
};
# --- Config files ---------------------------------
environment.etc = {
# Common configuration
nomad-common-cfg = {
@@ -44,6 +47,15 @@ in
};
};
# --- Secrets ---------------------------------
age.secrets = {
"nomad.d/consul-token.json" = {
file = ../../secrets/nomad.d/consul-token.json.age;
mode = "644";
};
};
# networking.firewall.allowedTCPPorts = [ 22 ];
};
}