aboutsummaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-04 21:55:48 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-04 21:55:48 +0100
commit2150e0956bbffb995e15e29dc7f5415eb9a2e1dd (patch)
tree24025843220d032676cc91ee794fabdc09592c5e /node
parent3db6c9a5351b5a67dec18ff02dc60907eec30925 (diff)
downloadnixcfg-2150e0956bbffb995e15e29dc7f5415eb9a2e1dd.tar.gz
nixcfg-2150e0956bbffb995e15e29dc7f5415eb9a2e1dd.zip
Nomad and consul: single region now
Diffstat (limited to 'node')
-rw-r--r--node/carcajou.nix4
-rw-r--r--node/caribou.nix4
-rw-r--r--node/spoutnik.nix4
3 files changed, 12 insertions, 0 deletions
diff --git a/node/carcajou.nix b/node/carcajou.nix
index 9cf6cde..bc90d76 100644
--- a/node/carcajou.nix
+++ b/node/carcajou.nix
@@ -25,4 +25,8 @@
# Enable netdata monitoring
services.netdata.enable = true;
+
+ # Activate as Nomad and Consul server node
+ services.nomad.settings.server.enabled = true;
+ services.consul.extraConfig.server = true;
}
diff --git a/node/caribou.nix b/node/caribou.nix
index d4b186d..e354754 100644
--- a/node/caribou.nix
+++ b/node/caribou.nix
@@ -26,6 +26,10 @@
# OR use USB modem plugged in here
#networking.interfaces.enp0s20u1.useDHCP = true;
+ # Activate as Nomad and Consul server node
+ services.nomad.settings.server.enabled = true;
+ services.consul.extraConfig.server = true;
+
# Enable netdata monitoring
services.netdata.enable = true;
diff --git a/node/spoutnik.nix b/node/spoutnik.nix
index 4aa6f91..1554de9 100644
--- a/node/spoutnik.nix
+++ b/node/spoutnik.nix
@@ -25,6 +25,10 @@
listenPort = 42136;
};
+ # Activate as Nomad and Consul server node
+ services.nomad.settings.server.enabled = true;
+ services.consul.extraConfig.server = true;
+
# Nginx configuration:
services.nginx = {