aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-11-18 16:05:44 +0100
committerAlex Auvolat <alex@adnab.me>2021-11-18 16:06:17 +0100
commit9eab23db4cad2374e301624b0cf5ba8f3d5a933e (patch)
tree55a645d172e805d92891b702ccc4f8ca00376c42
parent52309c1912755d6f68c9a74cbe3d270e26e5e496 (diff)
downloadnixcfg-9eab23db4cad2374e301624b0cf5ba8f3d5a933e.tar.gz
nixcfg-9eab23db4cad2374e301624b0cf5ba8f3d5a933e.zip
fix IPs for nomad
-rw-r--r--configuration.nix6
-rw-r--r--ssh_config3
-rw-r--r--ssh_known_hosts1
3 files changed, 7 insertions, 3 deletions
diff --git a/configuration.nix b/configuration.nix
index dbdbd52..76de0d1 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -210,7 +210,7 @@ in
# Enable Hashicorp Consul & Nomad
services.consul.enable = true;
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
{
datacenter = "neptune";
@@ -219,12 +219,12 @@ in
ui = true;
bind_addr = public_ip;
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.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
{
datacenter = "neptune";
diff --git a/ssh_config b/ssh_config
index c685411..56b96f1 100644
--- a/ssh_config
+++ b/ssh_config
@@ -8,3 +8,6 @@ Host carcajou
Host cariacou
HostName 10.42.0.21
+
+Host spoutnik
+ HostName 10.42.0.2
diff --git a/ssh_known_hosts b/ssh_known_hosts
index b0de4db..3959743 100644
--- a/ssh_known_hosts
+++ b/ssh_known_hosts
@@ -1,3 +1,4 @@
10.42.0.22 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXyY9yZdq/VYpg3K1plBzFvim41tWlu+Dmov3BNSm39
10.42.0.21 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILYIRbHPU1w1xWRpm2+u3QsXOKfMjv1EXrpYbHT+epds
10.42.0.23 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICNRilSqrgqdZlLdhN2eOY5ZMbzqpeqAdIf6QuChhXU+
+10.42.0.2 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIORTjNdFaDbhto8kuMPB3hYkfnzdnceZVIELApUe5PPL