111 lines
2.6 KiB
Nix
111 lines
2.6 KiB
Nix
###
|
|
# File specifying all the deployement options for the nodes administrated by the dgnum.
|
|
#
|
|
# Node metadata template is:
|
|
#
|
|
# NODE_NAME = {
|
|
# adminGroups = []; # List of groups that have root access
|
|
# admins = []; # List of individuals that have root access
|
|
# deployment = {}; # Colmena deployment options
|
|
# nixpkgs = "unstable" or "22.11"; # nixpkgs version
|
|
# }
|
|
|
|
/*
|
|
Liste des différents sites :
|
|
- rat01 -> VM du NPSPI
|
|
- pav01 -> Salle serveur sous le pavillon Pasteur
|
|
- oik01 -> Local DGNum Jourdan
|
|
- hyp01 -> Salle serveur Hypnos 1
|
|
- luj01 -> VM de Luj
|
|
*/
|
|
let
|
|
mkRoutexp =
|
|
l:
|
|
builtins.listToAttrs (
|
|
builtins.map (
|
|
{ id, ... }:
|
|
{
|
|
name = "routexp${id}";
|
|
value = {
|
|
site = "pav01";
|
|
|
|
hashedPassword = "$y$j9T$XJTT9MWCE49axmQppQSKc0$b9OzdEaQgDdXTc.meKWNeKd.TeTui2PdzdcFI/ggKk3";
|
|
|
|
stateVersion = "24.11";
|
|
nixpkgs = "unstable";
|
|
};
|
|
}
|
|
) l
|
|
);
|
|
in
|
|
{
|
|
dns01 = {
|
|
site = "pav01";
|
|
|
|
# TODO:
|
|
hashedPassword = "$y$j9T$eNZQgDN.J5y7KTG2hXgat1$J1i5tjx5dnSZu.C9B7swXi5zMFIkUnmRrnmyLHFAt8/";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "24.05";
|
|
};
|
|
krz01 = {
|
|
site = "pav01";
|
|
|
|
hashedPassword = "$y$j9T$eNZQgDN.J5y7KTG2hXgat1$J1i5tjx5dnSZu.C9B7swXi5zMFIkUnmRrnmyLHFAt8/";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
homebox01 = {
|
|
site = "pav01";
|
|
|
|
hashedPassword = "$y$j9T$eNZQgDN.J5y7KTG2hXgat1$J1i5tjx5dnSZu.C9B7swXi5zMFIkUnmRrnmyLHFAt8/";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
labcore01 = {
|
|
site = "pav01";
|
|
|
|
hashedPassword = "$y$j9T$aFhOWa05W7VKeKt3Nc.nA1$uBOvG4wf7/yWjwOxO8NLf9ipCsAkS1.5cD2EJpLx57A";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "24.05";
|
|
};
|
|
photo01 = {
|
|
site = "pav01";
|
|
|
|
# TODO
|
|
hashedPassword = "$y$j9T$aFhOWa05W7VKeKt3Nc.nA1$uBOvG4wf7/yWjwOxO8NLf9ipCsAkS1.5cD2EJpLx57A";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
router02 = {
|
|
site = "pav01";
|
|
|
|
hashedPassword = "$y$j9T$aFhOWa05W7VKeKt3Nc.nA1$uBOvG4wf7/yWjwOxO8NLf9ipCsAkS1.5cD2EJpLx57A";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
status01 = {
|
|
site = "pav01";
|
|
|
|
hashedPassword = "$y$j9T$eNZQgDN.J5y7KTG2hXgat1$J1i5tjx5dnSZu.C9B7swXi5zMFIkUnmRrnmyLHFAt8/";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
roam01 = {
|
|
site = "nowhere";
|
|
|
|
hashedPassword = "$y$j9T$5OchePm5POsgveGLY/bKy/$9XkkZq9aBycg.YImEzFSiYRbAfBO0A4G7qMGIF/WEo9";
|
|
|
|
deployment.targetHost = "129.199.146.37";
|
|
|
|
stateVersion = "24.11";
|
|
nixpkgs = "unstable";
|
|
};
|
|
}
|
|
// mkRoutexp (import ./routexp.nix)
|