From 869c868decdc3189ff80bf09b74b2e29dfffc8cb Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 13 Jan 2022 11:29:47 +0100 Subject: Add site metadata to nomad and consul config so that nodes know where they are --- configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configuration.nix b/configuration.nix index 2eefbc4..c493496 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; -- cgit v1.2.3