mirror of https://gitlab.crans.org/nounous/nixos
add description vlan & switch & ilo info
parent
b7e682fc5d
commit
63741ae107
129
hosts.nix
129
hosts.nix
|
|
@ -1,14 +1,57 @@
|
||||||
rec {
|
rec {
|
||||||
vlans = {
|
vlans = {
|
||||||
srv = {id = 2;};
|
void = {
|
||||||
srv-nat = {id = 3;};
|
id = 1;
|
||||||
san = {id = 4;};
|
description = "VLAN par défaut des switchs";
|
||||||
adm = {id = 10;};
|
};
|
||||||
adh = {id = 12;};
|
srv = {
|
||||||
adm-adh = {id = 13;};
|
id = 2;
|
||||||
vr = {id = 27;};
|
description = "Serveurs du Crans à IP publiques";
|
||||||
aurore = {id = 28;};
|
ipv4 = "185.230.79.0/26";
|
||||||
imprimante = {id = 2756;};
|
ipv6 = "2a0c:700:2::/64";
|
||||||
|
};
|
||||||
|
srv-nat = {
|
||||||
|
id = 3;
|
||||||
|
description = "Serveur du Crans derrière un NAT";
|
||||||
|
ipv4 = "172.16.3.0/24";
|
||||||
|
ipv6 = "2a0c:700:3::/64";
|
||||||
|
};
|
||||||
|
san = {
|
||||||
|
id = 4;
|
||||||
|
description = "Interconnexion avec les baies de stockage";
|
||||||
|
};
|
||||||
|
ceph = {
|
||||||
|
id = 6;
|
||||||
|
description = "VLan interne pour ceph (synchronisation des nodes ceph)";
|
||||||
|
};
|
||||||
|
adm = {
|
||||||
|
id = 10;
|
||||||
|
description = "Administration des serveurs";
|
||||||
|
};
|
||||||
|
adh = {
|
||||||
|
id = 12;
|
||||||
|
description = "Machines des adhérent·e·s à IP publiques";
|
||||||
|
};
|
||||||
|
adm-adh = {
|
||||||
|
id = 13;
|
||||||
|
description = "Administration des machines des adhérent·e·s";
|
||||||
|
};
|
||||||
|
viarezo = {
|
||||||
|
id = 27;
|
||||||
|
description = "Interconnexion avec viarezo";
|
||||||
|
};
|
||||||
|
aurore = {
|
||||||
|
id = 28;
|
||||||
|
description = "Interconnexion avec aurore";
|
||||||
|
};
|
||||||
|
ens = {
|
||||||
|
id = 38;
|
||||||
|
description = "Interconnexion avec l'ENS (arrive détaggé & vlan 2751 pour l'ENS)";
|
||||||
|
};
|
||||||
|
lp = {
|
||||||
|
id = 56;
|
||||||
|
description = "Connexion avec l'imprimante (vlan 2756 pour l'ENS)";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
reseaux = {
|
reseaux = {
|
||||||
|
|
@ -22,7 +65,7 @@ rec {
|
||||||
};
|
};
|
||||||
# vr = {
|
# vr = {
|
||||||
# vlans = with vlans; [
|
# vlans = with vlans; [
|
||||||
# vr
|
# viarezo
|
||||||
# ];
|
# ];
|
||||||
# switch = {
|
# switch = {
|
||||||
# arceus = 21;
|
# arceus = 21;
|
||||||
|
|
@ -30,7 +73,8 @@ rec {
|
||||||
# };
|
# };
|
||||||
ens = {
|
ens = {
|
||||||
vlans = with vlans; [
|
vlans = with vlans; [
|
||||||
imprimante
|
ens
|
||||||
|
lp
|
||||||
];
|
];
|
||||||
switch = {
|
switch = {
|
||||||
carapuce = 17;
|
carapuce = 17;
|
||||||
|
|
@ -64,9 +108,6 @@ rec {
|
||||||
switch = {
|
switch = {
|
||||||
carapuce = 13;
|
carapuce = 13;
|
||||||
arceus = 13;
|
arceus = 13;
|
||||||
ilo = {
|
|
||||||
carapuce = 25; # TODO
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -85,9 +126,10 @@ rec {
|
||||||
switch = {
|
switch = {
|
||||||
carapuce = 10;
|
carapuce = 10;
|
||||||
arceus = 10;
|
arceus = 10;
|
||||||
ilo = {
|
|
||||||
carapuce = 10; # TODO
|
|
||||||
};
|
};
|
||||||
|
ilo = {
|
||||||
|
id = 51;
|
||||||
|
switch.salameche = 18;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cameron = {
|
cameron = {
|
||||||
|
|
@ -102,6 +144,14 @@ rec {
|
||||||
Stockage adh
|
Stockage adh
|
||||||
'';
|
'';
|
||||||
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
|
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
|
||||||
|
switch = {
|
||||||
|
# TODO: temp rebasculer sur fibre
|
||||||
|
salameche = -1 ;
|
||||||
|
};
|
||||||
|
ilo = {
|
||||||
|
id = 52;
|
||||||
|
switch.salameche = 16;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
# cephirot = {
|
# cephirot = {
|
||||||
# id = 3;
|
# id = 3;
|
||||||
|
|
@ -119,10 +169,7 @@ rec {
|
||||||
arceus = {
|
arceus = {
|
||||||
is_debian = true;
|
is_debian = true;
|
||||||
id = 7;
|
id = 7;
|
||||||
vlans = with vlans; [
|
vlans = vlans;
|
||||||
adm
|
|
||||||
san
|
|
||||||
];
|
|
||||||
serveur_type = ["switch"];
|
serveur_type = ["switch"];
|
||||||
description = ''
|
description = ''
|
||||||
Switch principal
|
Switch principal
|
||||||
|
|
@ -132,13 +179,38 @@ rec {
|
||||||
carapuce = {
|
carapuce = {
|
||||||
is_debian = true;
|
is_debian = true;
|
||||||
id = 8;
|
id = 8;
|
||||||
|
vlans = vlans;
|
||||||
|
serveur_type = ["switch"];
|
||||||
|
description = ''
|
||||||
|
Switch principal
|
||||||
|
'';
|
||||||
|
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
|
||||||
|
};
|
||||||
|
rodney = {
|
||||||
|
is_debian = true;
|
||||||
|
id = 9;
|
||||||
|
vlans = with vlans; [
|
||||||
|
adh
|
||||||
|
adm
|
||||||
|
adm-adh
|
||||||
|
san
|
||||||
|
];
|
||||||
|
serveur_type = ["switch"];
|
||||||
|
description = ''
|
||||||
|
Switch adh
|
||||||
|
'';
|
||||||
|
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
|
||||||
|
};
|
||||||
|
salameche = {
|
||||||
|
is_debian = true;
|
||||||
|
id = 10;
|
||||||
vlans = with vlans; [
|
vlans = with vlans; [
|
||||||
adm
|
adm
|
||||||
san
|
san
|
||||||
];
|
];
|
||||||
serveur_type = ["switch"];
|
serveur_type = ["switch"];
|
||||||
description = ''
|
description = ''
|
||||||
Switch principal
|
Switch ilo
|
||||||
'';
|
'';
|
||||||
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
|
public-ssh = "ssh-rsa TODOTODOTODOTODOTODOTODOTODO";
|
||||||
};
|
};
|
||||||
|
|
@ -159,9 +231,10 @@ rec {
|
||||||
switch = {
|
switch = {
|
||||||
carapuce = 1;
|
carapuce = 1;
|
||||||
arceus = 1;
|
arceus = 1;
|
||||||
ilo = {
|
|
||||||
carapuce = 25; # TODO
|
|
||||||
};
|
};
|
||||||
|
ilo = {
|
||||||
|
id = 21;
|
||||||
|
switch.salameche = 2; # TODO
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
daniel = {
|
daniel = {
|
||||||
|
|
@ -180,9 +253,10 @@ rec {
|
||||||
switch = {
|
switch = {
|
||||||
carapuce = 3;
|
carapuce = 3;
|
||||||
arceus = 3;
|
arceus = 3;
|
||||||
ilo = {
|
|
||||||
carapuce = 25; # TODO
|
|
||||||
};
|
};
|
||||||
|
ilo = {
|
||||||
|
id = 22;
|
||||||
|
switch.salameche = 4; # TODO
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
jack = {
|
jack = {
|
||||||
|
|
@ -201,9 +275,10 @@ rec {
|
||||||
switch = {
|
switch = {
|
||||||
carapuce = 5;
|
carapuce = 5;
|
||||||
arceus = 5;
|
arceus = 5;
|
||||||
ilo = {
|
|
||||||
carapuce = 25; # TODO
|
|
||||||
};
|
};
|
||||||
|
ilo = {
|
||||||
|
id = 23;
|
||||||
|
switch.salameche = 6; # TODO
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue