modif pour pouvoir generer la conf des switchs

config_switch
Lzebulon 2026-01-24 21:05:59 +01:00
parent 587a67efcd
commit 94dfc8c6a4
No known key found for this signature in database
GPG Key ID: D6CDAB8050CBBE7D
1 changed files with 65 additions and 33 deletions

View File

@ -1,15 +1,47 @@
let rec {
adm = 10; vlans = {
srv = ip: 4; srv = {id = 2;};
srv-nat = 2; srv-nat = {id = 3;};
san = 3; san = {id = 4;};
adh = ip: 42; adm = {id = 10;};
in adh = {id = 12;};
{ adm-adh = {id = 13;};
vr = {id = 27;};
aurore = {id = 28;};
imprimante = {id = 2756;};
};
reseaux = {
aurore = {
vlans = with vlans; [
aurore
];
switch = {
carapuce = 19;
};
};
# vr = {
# vlans = with vlans; [
# vr
# ];
# switch = {
# arceus = 21;
# };
# };
ens = {
vlans = with vlans; [
imprimante
];
switch = {
carapuce = 17;
};
};
};
physiques ={ physiques ={
thot = { thot = {
id = 14; id = 14;
vlans = [ vlans = with vlans; [
adm adm
]; ];
serveur_type = ["backup"]; serveur_type = ["backup"];
@ -21,7 +53,7 @@ in
ft = { ft = {
is_debian = true; is_debian = true;
id = 15; id = 15;
vlans = [ vlans = with vlans; [
adm adm
]; ];
serveur_type = ["backup"]; serveur_type = ["backup"];
@ -41,7 +73,7 @@ in
tealc = { tealc = {
is_debian = true; is_debian = true;
id = 1; id = 1;
vlans = [ vlans = with vlans; [
adm adm
san san
]; ];
@ -61,7 +93,7 @@ in
cameron = { cameron = {
is_debian = true; is_debian = true;
id = 2; id = 2;
vlans = [ vlans = with vlans; [
adm adm
san san
]; ];
@ -73,7 +105,7 @@ in
}; };
# cephirot = { # cephirot = {
# id = 3; # id = 3;
# vlans = [ # vlans = with vlans; [
# adm # adm
# san # san
# ]; # ];
@ -87,7 +119,7 @@ in
arceus = { arceus = {
is_debian = true; is_debian = true;
id = 7; id = 7;
vlans = [ vlans = with vlans; [
adm adm
san san
]; ];
@ -100,7 +132,7 @@ in
carapuce = { carapuce = {
is_debian = true; is_debian = true;
id = 8; id = 8;
vlans = [ vlans = with vlans; [
adm adm
san san
]; ];
@ -114,7 +146,7 @@ in
sam = { sam = {
is_debian = true; is_debian = true;
id = 11; id = 11;
vlans = [ vlans = with vlans; [
adm adm
san san
srv-nat srv-nat
@ -135,7 +167,7 @@ in
daniel = { daniel = {
is_debian = true; is_debian = true;
id = 12; id = 12;
vlans = [ vlans = with vlans; [
adm adm
san san
srv-nat srv-nat
@ -156,7 +188,7 @@ in
jack = { jack = {
is_debian = true; is_debian = true;
id = 13; id = 13;
vlans = [ vlans = with vlans; [
adm adm
san san
srv-nat srv-nat
@ -178,7 +210,7 @@ in
odlyd = { odlyd = {
is_debian = true; is_debian = true;
id = 16; id = 16;
vlans = [ vlans = with vlans; [
adh adh
adm adm
]; ];
@ -191,7 +223,7 @@ in
stitch = { stitch = {
is_debian = true; is_debian = true;
id = 17; id = 17;
vlans = [ vlans = with vlans; [
adh adh
adm adm
]; ];
@ -201,7 +233,7 @@ in
''; '';
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO"; public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
}; };
gulp = { gulp = with vlans; {
is_debian = true; is_debian = true;
id = 18; id = 18;
vlans = [ vlans = [
@ -215,7 +247,7 @@ in
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO"; public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
}; };
zamok = { zamok = with vlans; {
is_debian = true; is_debian = true;
id = 31; id = 31;
vlans = [ vlans = [
@ -236,7 +268,7 @@ in
name = "romanesco"; name = "romanesco";
is_debian = true; is_debian = true;
id = 145; id = 145;
vlans = [ vlans = with vlans; [
adm adm
(adh "185.230.78.252") (adh "185.230.78.252")
(srv "185.230.79.59") (srv "185.230.79.59")
@ -246,7 +278,7 @@ in
''; '';
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO"; public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
}; };
neo = { neo = with vlans; {
name = "neo"; name = "neo";
id = 145; id = 145;
vlans = [ vlans = [
@ -261,7 +293,7 @@ in
}; };
nextcloud = { nextcloud = {
id = 146; id = 146;
vlans = [ vlans = with vlans; [
adm adm
san san
srv-nat srv-nat
@ -273,7 +305,7 @@ in
}; };
apprentix = { apprentix = {
id = 150; id = 150;
vlans = [ vlans = with vlans; [
adm adm
]; ];
description = '' description = ''
@ -283,7 +315,7 @@ in
}; };
jitsi = { jitsi = {
id = 163; id = 163;
vlans = [ vlans = with vlans; [
adm adm
(srv "185.230.79.15") (srv "185.230.79.15")
]; ];
@ -294,7 +326,7 @@ in
}; };
livre = { livre = {
id = 140; id = 140;
vlans = [ vlans = with vlans; [
adm adm
srv-nat srv-nat
]; ];
@ -305,7 +337,7 @@ in
}; };
periodique = { periodique = {
id = 118; id = 118;
vlans = [ vlans = with vlans; [
adm adm
srv-nat srv-nat
]; ];
@ -316,7 +348,7 @@ in
}; };
redite = { redite = {
id = 139; id = 139;
vlans = [ vlans = with vlans; [
adm adm
srv-nat srv-nat
]; ];
@ -325,7 +357,7 @@ in
''; '';
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO"; public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
}; };
reverseproxy = { reverseproxy = with vlans; {
id = 151; id = 151;
vlans = [ vlans = [
adm adm
@ -339,7 +371,7 @@ in
}; };
two = { two = {
id = 135; id = 135;
vlans = [ vlans = with vlans; [
adm adm
srv-nat srv-nat
]; ];
@ -350,7 +382,7 @@ in
}; };
vaultwarden = { vaultwarden = {
id = 159; id = 159;
vlans = [ vlans = with vlans; [
adm adm
srv-nat srv-nat
]; ];