Ryan Lahfa
8b66b2b7c3
Some checks failed
Check meta / check_meta (push) Failing after 17s
Check meta / check_meta (pull_request) Failing after 18s
lint / check (push) Successful in 24s
build configuration / build_compute01 (pull_request) Failing after 38s
build configuration / build_storage01 (pull_request) Failing after 35s
Check meta / check_dns (push) Failing after 1m9s
Check meta / check_dns (pull_request) Failing after 59s
build configuration / build_vault01 (pull_request) Failing after 36s
build configuration / build_web01 (pull_request) Failing after 35s
build configuration / build_web02 (pull_request) Failing after 40s
build configuration / build_rescue01 (pull_request) Failing after 33s
build configuration / push_to_cache (pull_request) Has been skipped
It works! Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
97 lines
1.8 KiB
Nix
97 lines
1.8 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
|
|
*/
|
|
{
|
|
web01 = {
|
|
site = "rat01";
|
|
|
|
deployment.tags = [ "web" ];
|
|
|
|
stateVersion = "23.05";
|
|
vm-cluster = "Hyperviseur NPS";
|
|
|
|
nix-modules = [ "services/crabfit" ];
|
|
};
|
|
|
|
compute01 = {
|
|
site = "pav01";
|
|
|
|
stateVersion = "23.05";
|
|
nix-modules = [ "services/stirling-pdf" ];
|
|
};
|
|
|
|
geo01 = {
|
|
site = "oik01";
|
|
deployment.tags = [ "geo" ];
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
|
|
geo02 = {
|
|
site = "oik01";
|
|
deployment.tags = [ "geo" ];
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
};
|
|
|
|
storage01 = {
|
|
site = "pav01";
|
|
stateVersion = "23.11";
|
|
|
|
nix-modules = [ "services/forgejo-nix-runners" ];
|
|
};
|
|
|
|
vault01 = {
|
|
site = "hyp01";
|
|
deployment.targetHost = "vault01.dgnum";
|
|
|
|
stateVersion = "23.11";
|
|
nixpkgs = "unstable";
|
|
|
|
adminGroups = [ "fai" ];
|
|
};
|
|
|
|
web02 = {
|
|
site = "rat01";
|
|
|
|
stateVersion = "24.05";
|
|
nixpkgs = "unstable";
|
|
vm-cluster = "Hyperviseur NPS";
|
|
};
|
|
|
|
rescue01 = {
|
|
site = "luj01";
|
|
|
|
deployment.targetHost = "v6.rescue01.luj01.infra.dgnum.eu";
|
|
|
|
stateVersion = "23.11";
|
|
vm-cluster = "Hyperviseur Luj";
|
|
};
|
|
|
|
# Access points definition
|
|
ap01 = {
|
|
site = "unknown";
|
|
adminGroups = [ "fai" ];
|
|
|
|
system = "zyxel-nwa50ax";
|
|
};
|
|
}
|