Compare commits

...

2 commits

Author SHA1 Message Date
Max
d720ba41a6 cluster/services/consul: set bootstrap_expect 2024-07-16 22:56:25 +02:00
Max
fa36c5879c hosts: use dynamic primary interface name 2024-07-16 20:14:30 +02:00
6 changed files with 10 additions and 9 deletions

View file

@ -23,6 +23,7 @@ in
bind_addr = hl.ipv4;
ports.serf_lan = hl.port;
retry_join = map (hostName: hostLinks.${hostName}.consul.tuple) (cfg.otherNodes.agent hostName);
bootstrap_expect = builtins.length cfg.nodes.agent;
};
};

View file

@ -46,7 +46,7 @@
time.timeZone = "Europe/Helsinki";
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports =
@ -22,7 +22,7 @@
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports =
@ -24,7 +24,7 @@
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.enp0s6.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports = with depot.nixosModules; [
@ -12,7 +12,7 @@
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
networking.nameservers = [ depot.hours.VEGAS.interfaces.vstub.addr ];

View file

@ -1,4 +1,4 @@
{ depot, ... }:
{ config, depot, ... }:
{
imports =
@ -22,7 +22,7 @@
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
networking.interfaces.${config.reflection.interfaces.primary.link}.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";