mirror of https://gitlab.crans.org/nounous/nixos
poc host file
parent
eb86f85eb8
commit
93f640e0fa
|
|
@ -0,0 +1,69 @@
|
||||||
|
{adm,srv,srv-nat,san, adh}:
|
||||||
|
{
|
||||||
|
physiques = [
|
||||||
|
{
|
||||||
|
name = "cephirot";
|
||||||
|
id = 3;
|
||||||
|
vlans = [
|
||||||
|
adm
|
||||||
|
san
|
||||||
|
];
|
||||||
|
serveur_type = ["san"];
|
||||||
|
description = ''
|
||||||
|
Un serveur avec peut etre un jour ceph
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "thot";
|
||||||
|
id = 14;
|
||||||
|
vlans = [
|
||||||
|
adm
|
||||||
|
san
|
||||||
|
];
|
||||||
|
serveur_type = ["backup"];
|
||||||
|
description = ''
|
||||||
|
Serveur de backup du Crans, actuellement en SQ39
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
vms = [
|
||||||
|
{
|
||||||
|
name = "romanesco";
|
||||||
|
is_debian = true;
|
||||||
|
id = 145;
|
||||||
|
vlans = [
|
||||||
|
adm
|
||||||
|
(adh "185.230.78.252")
|
||||||
|
(srv "185.230.79.5")
|
||||||
|
];
|
||||||
|
description = ''
|
||||||
|
DNS récursif
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "neo";
|
||||||
|
id = 145;
|
||||||
|
vlans = [
|
||||||
|
adm
|
||||||
|
# pas besoin de spécifier l'ipv6 car elle est construite depuis l'id
|
||||||
|
(srv "180.230.79.5")
|
||||||
|
];
|
||||||
|
description = ''
|
||||||
|
Matrix du crans, heberge également le bridge IRC <-> Matrix
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NextCloud";
|
||||||
|
id = 146;
|
||||||
|
vlans = [
|
||||||
|
adm
|
||||||
|
san
|
||||||
|
srv-nat
|
||||||
|
];
|
||||||
|
description = ''
|
||||||
|
NextCloud du Crans
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
let
|
||||||
|
machines = import ./hosts.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
dns-recursif = machines.vms.romanesco.id;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue