2023-07-20 12:32:31 +02:00
|
|
|
###
|
|
|
|
# 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
|
|
|
|
# }
|
|
|
|
|
|
|
|
let
|
|
|
|
mkNode = _: attrs: {
|
|
|
|
adminGroups = [ ];
|
|
|
|
admins = [ ];
|
2023-05-22 17:24:42 +02:00
|
|
|
|
2023-07-20 12:32:31 +02:00
|
|
|
deployment = { };
|
2023-05-22 17:24:42 +02:00
|
|
|
|
2023-07-20 12:32:31 +02:00
|
|
|
nixpkgs = "23.05";
|
|
|
|
} // attrs;
|
|
|
|
in
|
2023-05-22 17:24:42 +02:00
|
|
|
|
2023-07-20 12:32:31 +02:00
|
|
|
builtins.mapAttrs mkNode {
|
|
|
|
web01 = {
|
2023-05-22 15:06:11 +02:00
|
|
|
adminGroups = [ "web" ];
|
|
|
|
|
|
|
|
deployment = {
|
|
|
|
tags = [ "web" ];
|
|
|
|
};
|
|
|
|
|
2023-07-20 12:32:31 +02:00
|
|
|
stateVersion = "23.05";
|
2023-05-22 15:06:11 +02:00
|
|
|
};
|
2023-07-18 17:00:31 +02:00
|
|
|
|
|
|
|
compute01 = {
|
|
|
|
adminGroups = [ "bureau" ];
|
|
|
|
|
2023-07-21 00:37:05 +02:00
|
|
|
deployment.tags = [ "dns" ];
|
|
|
|
|
2023-07-20 12:32:31 +02:00
|
|
|
stateVersion = "23.05";
|
2023-07-18 17:00:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
storage01 = {
|
|
|
|
adminGroups = [ "bureau" ];
|
|
|
|
|
2023-07-20 12:32:31 +02:00
|
|
|
stateVersion = "23.05";
|
2023-07-18 17:00:31 +02:00
|
|
|
};
|
2023-05-22 15:06:11 +02:00
|
|
|
}
|