Add site metadata to nomad and consul config so that nodes know where they are
This commit is contained in:
parent
b262e618ec
commit
869c868dec
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue