diff options
author | Alex Auvolat <alex@adnab.me> | 2021-11-18 16:05:44 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-11-18 16:06:17 +0100 |
commit | 9eab23db4cad2374e301624b0cf5ba8f3d5a933e (patch) | |
tree | 55a645d172e805d92891b702ccc4f8ca00376c42 /configuration.nix | |
parent | 52309c1912755d6f68c9a74cbe3d270e26e5e496 (diff) | |
download | nixcfg-9eab23db4cad2374e301624b0cf5ba8f3d5a933e.tar.gz nixcfg-9eab23db4cad2374e301624b0cf5ba8f3d5a933e.zip |
fix IPs for nomad
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 6 |
1 files changed, 3 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"; |