aboutsummaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-13 11:29:47 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-13 11:29:47 +0100
commit869c868decdc3189ff80bf09b74b2e29dfffc8cb (patch)
tree22453664b8dd3bd831f82e8aa7d27ca4430f59e8 /configuration.nix
parentb262e618ecdc36ece247c629f10300b7866d3f93 (diff)
downloadnixcfg-869c868decdc3189ff80bf09b74b2e29dfffc8cb.tar.gz
nixcfg-869c868decdc3189ff80bf09b74b2e29dfffc8cb.zip
Add site metadata to nomad and consul config so that nodes know where they are
Diffstat (limited to 'configuration.nix')
-rw-r--r--configuration.nix6
1 files changed, 6 insertions, 0 deletions
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;