fix IPs for nomad

This commit is contained in:
Alex 2021-11-18 16:05:44 +01:00
parent 52309c1912
commit 9eab23db4c
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1
3 changed files with 7 additions and 3 deletions

View file

@ -210,7 +210,7 @@ in
# Enable Hashicorp Consul & Nomad # Enable Hashicorp Consul & Nomad
services.consul.enable = true; services.consul.enable = true;
services.consul.extraConfig = services.consul.extraConfig =
let public_ip = (builtins.head node_config.networking.interfaces.eno1.ipv4.addresses).address; let public_ip = (builtins.head node_config.networking.wireguard.interfaces.wg0.ips);
in in
{ {
datacenter = "neptune"; datacenter = "neptune";
@ -219,12 +219,12 @@ in
ui = true; ui = true;
bind_addr = public_ip; bind_addr = public_ip;
addresses.http = "0.0.0.0"; addresses.http = "0.0.0.0";
retry_join = [ "192.168.1.21" "192.168.1.22" "192.168.1.23" ]; retry_join = [ "10.42.0.2" "10.42.0.21" "10.42.0.22" "10.42.0.23" ];
}; };
services.nomad.enable = true; services.nomad.enable = true;
services.nomad.settings = services.nomad.settings =
let public_ip = (builtins.head node_config.networking.interfaces.eno1.ipv4.addresses).address; let public_ip = (builtins.head node_config.networking.wireguard.interfaces.wg0.ips);
in in
{ {
datacenter = "neptune"; datacenter = "neptune";

View file

@ -8,3 +8,6 @@ Host carcajou
Host cariacou Host cariacou
HostName 10.42.0.21 HostName 10.42.0.21
Host spoutnik
HostName 10.42.0.2

View file

@ -1,3 +1,4 @@
10.42.0.22 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXyY9yZdq/VYpg3K1plBzFvim41tWlu+Dmov3BNSm39 10.42.0.22 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXyY9yZdq/VYpg3K1plBzFvim41tWlu+Dmov3BNSm39
10.42.0.21 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILYIRbHPU1w1xWRpm2+u3QsXOKfMjv1EXrpYbHT+epds 10.42.0.21 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILYIRbHPU1w1xWRpm2+u3QsXOKfMjv1EXrpYbHT+epds
10.42.0.23 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICNRilSqrgqdZlLdhN2eOY5ZMbzqpeqAdIf6QuChhXU+ 10.42.0.23 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICNRilSqrgqdZlLdhN2eOY5ZMbzqpeqAdIf6QuChhXU+
10.42.0.2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIORTjNdFaDbhto8kuMPB3hYkfnzdnceZVIELApUe5PPL