Add site metadata to nomad and consul config so that nodes know where they are

This commit is contained in:
Alex 2022-01-13 11:29:47 +01:00
parent b262e618ec
commit 869c868dec
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -198,6 +198,9 @@ in
else {}) // else {}) //
{ {
datacenter = "staging"; datacenter = "staging";
node_meta = {
"site" = site_config.services.nomad.settings.datacenter;
};
ui = true; ui = true;
bind_addr = public_ip; bind_addr = public_ip;
@ -240,6 +243,9 @@ in
client = { client = {
enabled = true; enabled = true;
network_interface = "wg0"; network_interface = "wg0";
meta = {
"site" = site_config.services.nomad.settings.datacenter;
};
}; };
tls = { tls = {
http = true; http = true;