Added consul server config
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user