infrastructure/meta/nodes.nix
Tom Hubrecht c2616ce4f5 modules/dgn-dns: init
Also deploy a DNS server on compute01
2023-07-21 00:37:05 +02:00

48 lines
861 B
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
# }
let
mkNode = _: attrs: {
adminGroups = [ ];
admins = [ ];
deployment = { };
nixpkgs = "23.05";
} // attrs;
in
builtins.mapAttrs mkNode {
web01 = {
adminGroups = [ "web" ];
deployment = {
tags = [ "web" ];
};
stateVersion = "23.05";
};
compute01 = {
adminGroups = [ "bureau" ];
deployment.tags = [ "dns" ];
stateVersion = "23.05";
};
storage01 = {
adminGroups = [ "bureau" ];
stateVersion = "23.05";
};
}