From 80b54a50df70919791af14b31989ebfb1c30f78a Mon Sep 17 00:00:00 2001 From: sio user Date: Mon, 15 Jan 2024 17:54:31 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20entr=C3=A9e=20dnas=20base,=20post=20et?= =?UTF-8?q?=20dns-master=20pour=20s-kea1=20et=20s-kea2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/base/templates/hosts.j2 | 2 ++ roles/base/templates/hosts.s-proxy.j2 | 2 ++ roles/dns-master/files/db.gsb.lan | 4 +++- roles/dns-master/files/db.gsb.lan.rev | 6 ++++-- roles/post/files/interfaces.s-kea1 | 26 ++++++++++++++++++++++++++ roles/post/files/interfaces.s-kea2 | 26 ++++++++++++++++++++++++++ 6 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 roles/post/files/interfaces.s-kea1 create mode 100644 roles/post/files/interfaces.s-kea2 diff --git a/roles/base/templates/hosts.j2 b/roles/base/templates/hosts.j2 index 228e45a..24173b6 100644 --- a/roles/base/templates/hosts.j2 +++ b/roles/base/templates/hosts.j2 @@ -22,6 +22,8 @@ 192.168.99.14 s-nas.gsb.adm 192.168.99.15 s-san.gsb.adm 192.168.99.16 s-fog.gsb.adm +192.168.99.20 s-kea1.gsb.adm +192.168.99.21 s-kea2.gsb.adm 192.168.99.50 s-lb-bd.gsb.adm 192.168.99.101 s-lb-web1.gsb.adm 192.168.99.102 s-lb-web2.gsb.adm diff --git a/roles/base/templates/hosts.s-proxy.j2 b/roles/base/templates/hosts.s-proxy.j2 index 96f6386..4fb8aa1 100644 --- a/roles/base/templates/hosts.s-proxy.j2 +++ b/roles/base/templates/hosts.s-proxy.j2 @@ -21,6 +21,8 @@ 192.168.99.12 r-int.gsb.adm 192.168.99.13 r-ext.gsb.adm 192.168.99.14 s-nas.gsb.adm +192.168.99.20 s-kea1.gsb.adm +192.168.99.21 s-kea2.gsb.adm 192.168.99.50 s-lb-bd.gsb.adm 192.168.99.101 s-lb-web1.gsb.adm 192.168.99.102 s-lb-web2.gsb.adm diff --git a/roles/dns-master/files/db.gsb.lan b/roles/dns-master/files/db.gsb.lan index fc6ccc4..d8de4a8 100644 --- a/roles/dns-master/files/db.gsb.lan +++ b/roles/dns-master/files/db.gsb.lan @@ -5,7 +5,7 @@ ; $TTL 604800 @ IN SOA s-infra.gsb.lan. root.s-infra.gsb.lan. ( - 2023051000 ; Serial + 2024011500 ; Serial 7200 ; Refresh 86400 ; Retry 8419200 ; Expire @@ -27,6 +27,8 @@ s-mon IN A 172.16.0.8 s-itil IN A 172.16.0.9 s-elk IN A 172.16.0.11 s-gestsup IN A 172.16.0.17 +s-kea1 IN A 172.16.0.20 +s-kea2 IN A 172.16.0.21 r-int IN A 172.16.0.254 r-int-lnk IN A 192.168.200.254 r-ext IN A 192.168.200.253 diff --git a/roles/dns-master/files/db.gsb.lan.rev b/roles/dns-master/files/db.gsb.lan.rev index 5085c2a..0e034bd 100644 --- a/roles/dns-master/files/db.gsb.lan.rev +++ b/roles/dns-master/files/db.gsb.lan.rev @@ -5,7 +5,7 @@ ; $TTL 604800 @ IN SOA s-infra.gsb.lan. root.s-infra.gsb.lan. ( - 2023040501 ; Serial + 2024011500 ; Serial 7200 ; Refresh 86400 ; Retry 8419200 ; Expire @@ -21,10 +21,12 @@ $TTL 604800 7.0 IN PTR s-nxc.gsb.lan. 8.0 IN PTR s-mon.gsb.lan. 9.0 IN PTR s-itil.gsb.lan. +20.0 IN PTR s-kea1.gsb.lan. +21.0 IN PTR s-kea2.gsb.lan. 101.1 IN PTR s-web1 101.2 IN PTR s-web2 100.10 IN PTR s-lb 100.10 IN PTR s-lb.gsb.lan 11.0 IN PTR s-elk.gsb.lan. 17.0 IN PTR s-gestsup.lan -254.0 IN PTR r-int.gsb.lan. \ No newline at end of file +254.0 IN PTR r-int.gsb.lan. diff --git a/roles/post/files/interfaces.s-kea1 b/roles/post/files/interfaces.s-kea1 new file mode 100644 index 0000000..6cb1815 --- /dev/null +++ b/roles/post/files/interfaces.s-kea1 @@ -0,0 +1,26 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback + +# cote N-adm +allow-hotplug enp0s3 +iface enp0s3 inet static + address 192.168.99.20 + netmask 255.255.255.0 + gateway 192.168.99.99 + + +# cote N-infra +allow-hotplug enp0s8 +iface enp0s8 inet static + address 172.16.0.20 + netmask 255.255.255.0 + +#cote N-user +allow-hotplug enp0s9 +iface enp0s9 inet static + address 172.16.64.20 + netmask 255.255.255.0 diff --git a/roles/post/files/interfaces.s-kea2 b/roles/post/files/interfaces.s-kea2 new file mode 100644 index 0000000..7e7e750 --- /dev/null +++ b/roles/post/files/interfaces.s-kea2 @@ -0,0 +1,26 @@ +# This file describes the network interfaces available on your system +# and how to activate them. For more information, see interfaces(5). + +# The loopback network interface +auto lo +iface lo inet loopback + +# cote N-adm +allow-hotplug enp0s3 +iface enp0s3 inet static + address 192.168.99.21 + netmask 255.255.255.0 + gateway 192.168.99.99 + + +# cote N-infra +allow-hotplug enp0s8 +iface enp0s8 inet static + address 172.16.0.21 + netmask 255.255.255.0 + +#cote N-user +allow-hotplug enp0s9 +iface enp0s9 inet static + address 172.16.64.21 + netmask 255.255.255.0