aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-09-17 20:37:22 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2024-09-17 20:37:22 +0200
commit3832accbe548e8bec76e5a54bff13d6670cc40af (patch)
tree1701acd79b7a769ec757a2d0d83a7e3343f1b777
parent8353376b24e6f2c038575c8d378c348c4ee5e092 (diff)
downloadinfra-3832accbe548e8bec76e5a54bff13d6670cc40af.tar.gz
infra-3832accbe548e8bec76e5a54bff13d6670cc40af.tar.bz2
infra-3832accbe548e8bec76e5a54bff13d6670cc40af.tar.xz
infra-3832accbe548e8bec76e5a54bff13d6670cc40af.zip
lhn2pi
-rw-r--r--ansible/group_vars/all/ipam.yml17
-rw-r--r--ansible/host_vars/lhn2pi/all.yml2
-rw-r--r--ansible/plays/lhn2pi.yml4
-rw-r--r--ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network7
-rw-r--r--tnet/files/hash/bird-tnet.conf7
-rw-r--r--tnet/files/knot/bird-tnet.conf2
-rw-r--r--tnet/files/lhn2pi/bird-tnet.conf10
-rw-r--r--tnet/host_vars/hash/bird.yml2
-rw-r--r--tnet/host_vars/knot/wg.yml3
-rw-r--r--tnet/host_vars/lhn2pi/bird.yml8
-rw-r--r--tnet/host_vars/lhn2pi/wg.yml3
11 files changed, 53 insertions, 12 deletions
diff --git a/ansible/group_vars/all/ipam.yml b/ansible/group_vars/all/ipam.yml
index 2f9bed1..d9c49b4 100644
--- a/ansible/group_vars/all/ipam.yml
+++ b/ansible/group_vars/all/ipam.yml
@@ -14,7 +14,7 @@ ipam6:
description: Internal network on host
range: "fdb1:4242:3538:2001::/64"
hosts:
- - conflatorio-ix: "fdb1:4242:3538:2001::ffff/64"
+ conflatorio-ix: "fdb1:4242:3538:2001::ffff/64"
conflatorio_docker:
range: "fdb1:4242:3538:2001:1001::/112"
node1_dn42:
@@ -24,14 +24,23 @@ ipam6:
knot_dn42:
range: "fdb1:4242:3538:2004::/64"
hosts:
- - knot: "fdb1:4242:3538:2004::ffff/64"
+ knot: "fdb1:4242:3538:2004::ffff/64"
coregonus_dn42:
range: "fdb1:4242:3538:2005::/64"
hosts:
- - coregonus-ix: "fdb1:4242:3538:2005::ffff/64"
+ coregonus-ix: "fdb1:4242:3538:2005::ffff/64"
coregonus_docker:
range: "fdb1:4242:3538:2005:df01:676a:ec28:0a00/120"
kv24_dn42:
range: "fdb1:4242:3538:2006::/64"
hosts:
- - kv24ix: "fdb1:4242:3538:2006::ffff/64"
+ kv24ix: "fdb1:4242:3538:2006::ffff/64"
+ conflatorio_dn42_2:
+ range: "fdb1:4242:3538:2007:1001::/112"
+ lhn2_dn42:
+ range: "fdb1:4242:3538:2008::/64"
+ hosts:
+ lhn2pi: "fdb1:4242:3538:2008::ffff/64"
+
+ dn42:
+ range: "fd00::/8"
diff --git a/ansible/host_vars/lhn2pi/all.yml b/ansible/host_vars/lhn2pi/all.yml
new file mode 100644
index 0000000..447906a
--- /dev/null
+++ b/ansible/host_vars/lhn2pi/all.yml
@@ -0,0 +1,2 @@
+systemd_networkd__files:
+ - lhn2pi/systemd/network/10-eth0.network
diff --git a/ansible/plays/lhn2pi.yml b/ansible/plays/lhn2pi.yml
new file mode 100644
index 0000000..614b926
--- /dev/null
+++ b/ansible/plays/lhn2pi.yml
@@ -0,0 +1,4 @@
+- hosts:
+ - lhn2pi
+ roles:
+ - systemd-networkd
diff --git a/ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network b/ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network
new file mode 100644
index 0000000..f17b3f9
--- /dev/null
+++ b/ansible/plays/templates/lhn2pi/systemd/network/10-eth0.network
@@ -0,0 +1,7 @@
+[Match]
+Name=eth0
+
+[Network]
+DHCP=ipv4
+Address={{ ipam6.networks.lhn2_dn42.hosts.lhn2pi }}
+# IPv6Forwarding=yes # needs newer systemd
diff --git a/tnet/files/hash/bird-tnet.conf b/tnet/files/hash/bird-tnet.conf
index 5ac9690..a570291 100644
--- a/tnet/files/hash/bird-tnet.conf
+++ b/tnet/files/hash/bird-tnet.conf
@@ -51,6 +51,13 @@ protocol bgp tnet_knot from tnet_tpl {
rr client;
}
+protocol bgp tnet_lhn2pi from tnet_tpl {
+ neighbor fe80:6195:1d43:9655:35f7:9dba:798c:26b9;
+ interface "tnet-lhn2pi";
+
+ rr client;
+}
+
protocol bgp tnet_node1 from tnet_tpl {
neighbor fe80:a026:6ec2:b356:21c5:b51:22b9:a1df;
interface "tnet-node1";
diff --git a/tnet/files/knot/bird-tnet.conf b/tnet/files/knot/bird-tnet.conf
index e774e31..f21be09 100644
--- a/tnet/files/knot/bird-tnet.conf
+++ b/tnet/files/knot/bird-tnet.conf
@@ -66,7 +66,7 @@ protocol bgp tnet_kv24ix from tnet_tpl {
}
protocol bgp tnet_lhn2pi from tnet_tpl {
- neighbor fdb1:4242:3538:ffff:374e:2c7d:319e:e527;
+ neighbor fe80:d83a:350b:2162:6eda:1cc1:9cd7:80e9;
interface "tnet-lhn2pi";
rr client;
diff --git a/tnet/files/lhn2pi/bird-tnet.conf b/tnet/files/lhn2pi/bird-tnet.conf
index a4498cd..9f0ef8c 100644
--- a/tnet/files/lhn2pi/bird-tnet.conf
+++ b/tnet/files/lhn2pi/bird-tnet.conf
@@ -36,3 +36,13 @@ template bgp tnet_tpl {
};
};
}
+
+protocol bgp tnet_hash from tnet_tpl {
+ neighbor fe80:6195:1d43:9655:35f7:9dba:798c:26b8;
+ interface "tnet-hash";
+}
+
+protocol bgp tnet_knot from tnet_tpl {
+ neighbor fe80:d83a:350b:2162:6eda:1cc1:9cd7:80e8;
+ interface "tnet-knot";
+}
diff --git a/tnet/host_vars/hash/bird.yml b/tnet/host_vars/hash/bird.yml
index 663f8e1..2b4bb51 100644
--- a/tnet/host_vars/hash/bird.yml
+++ b/tnet/host_vars/hash/bird.yml
@@ -4,6 +4,8 @@ tnet_bird_peers:
interface: tnet-confltrio
knot:
rr_client: true
+ lhn2pi:
+ rr_client: true
node1:
rr_client: true
node2:
diff --git a/tnet/host_vars/knot/wg.yml b/tnet/host_vars/knot/wg.yml
index 243c9f2..9ad867e 100644
--- a/tnet/host_vars/knot/wg.yml
+++ b/tnet/host_vars/knot/wg.yml
@@ -15,8 +15,7 @@ tnet_wg:
address: fdb1:4242:3538:ffff:59d7:cf77:8b5d:761a
lhn2pi:
port: 51005
- #address: fe80:440a:607e:b685:c955:93ae:29f8:dcd8
- address: fdb1:4242:3538:ffff:374e:2c7d:319e:e526
+ address: fe80:d83a:350b:2162:6eda:1cc1:9cd7:80e8
astyanax:
port: 51006
address: fe80:6728:53fc:fc81:40b3:9beb:8336:ba56
diff --git a/tnet/host_vars/lhn2pi/bird.yml b/tnet/host_vars/lhn2pi/bird.yml
index d132dd7..564c993 100644
--- a/tnet/host_vars/lhn2pi/bird.yml
+++ b/tnet/host_vars/lhn2pi/bird.yml
@@ -1,3 +1,5 @@
-tnet_bird_peers: []
-# hash:
-# knot:
+tnet_bird_peers:
+ hash:
+ knot:
+
+birdv: 2008
diff --git a/tnet/host_vars/lhn2pi/wg.yml b/tnet/host_vars/lhn2pi/wg.yml
index f9e741f..c94745c 100644
--- a/tnet/host_vars/lhn2pi/wg.yml
+++ b/tnet/host_vars/lhn2pi/wg.yml
@@ -1,8 +1,7 @@
tnet_wg:
knot:
endpoint: knot.inamo.no:51005
- #address: fe80:440a:607e:b685:c955:93ae:29f8:dcd9
- address: fdb1:4242:3538:ffff:374e:2c7d:319e:e527
+ address: fe80:d83a:350b:2162:6eda:1cc1:9cd7:80e9
hash:
endpoint: hash.trygvis.io:51003
address: fe80:6195:1d43:9655:35f7:9dba:798c:26b9