forked from Deuxfleurs/nixcfg
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 {}) //
|
||||
{
|
||||
datacenter = "staging";
|
||||
node_meta = {
|
||||
"site" = site_config.services.nomad.settings.datacenter;
|
||||
};
|
||||
ui = true;
|
||||
bind_addr = public_ip;
|
||||
|
||||
|
@ -240,6 +243,9 @@ in
|
|||
client = {
|
||||
enabled = true;
|
||||
network_interface = "wg0";
|
||||
meta = {
|
||||
"site" = site_config.services.nomad.settings.datacenter;
|
||||
};
|
||||
};
|
||||
tls = {
|
||||
http = true;
|
||||
|
|
Loading…
Reference in a new issue