feat(meta/organization): Split the file

This commit is contained in:
Tom Hubrecht 2025-02-16 16:03:41 +01:00 committed by thubrecht
parent 6cc74e8d2a
commit e0a0bc8c5f
4 changed files with 137 additions and 84 deletions

View file

@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{
imports = [
./groups.nix
./members.nix
./services.nix
];
}

View file

@ -0,0 +1,58 @@
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
# SPDX-FileContributor: Constantin Gierczak--Galle <cst@dgnum.eu>
# SPDX-FileContributor: Elias Coppens <elias.coppens@dgnum.eu>
# SPDX-FileContributor: Lubin Bailly <lubin.bailly@dgnum.eu>
# SPDX-FileContributor: Maurice Debray <maurice.debray@dgnum.eu>
# SPDX-FileContributor: Ryan Lahfa <ryan.lahfa@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
/*
To add a new member add an attribute to `members`
Then add the key to the required groups.
*/
{
organization = {
groups = {
# members of this group are root on all nodes
root = [
"thubrecht"
"raito"
"mdebray"
];
bureau = [
"jemagius"
"raito"
"mdebray"
"ecoppens"
];
# members of this group are root on the fai infrastructure
fai = [
"catvayor"
"ecoppens"
];
lab = [
"catvayor"
"cst1"
"ecoppens"
];
hypervisors = [
"catvayor"
"ecoppens"
];
nix-builder = [
"catvayor"
"ecoppens"
"mdebray"
"raito"
"thubrecht"
];
};
};
}

View file

@ -113,89 +113,5 @@
];
};
};
groups = {
# members of this group are root on all nodes
root = [
"thubrecht"
"raito"
"mdebray"
];
bureau = [
"jemagius"
"raito"
"mdebray"
"ecoppens"
];
# members of this group are root on the fai infrastructure
fai = [
"catvayor"
"ecoppens"
];
lab = [
"catvayor"
"cst1"
"ecoppens"
];
hypervisors = [
"catvayor"
"ecoppens"
];
nix-builder = [
"catvayor"
"ecoppens"
"mdebray"
"raito"
"thubrecht"
];
};
external = {
dns = [
"thubrecht"
"raito"
];
email = [ "raito" ];
irc = [ "raito" ];
};
services = {
# DG·SI
dgsi.admins = [
"mdebray"
"raito"
"thubrecht"
];
# Démarches Normaliennes
ds-fr.admins = [
"thubrecht"
"jemagius"
];
# Cloud DGNum
nextcloud.admins = [
"jemagius"
"mdebray"
"raito"
"thubrecht"
];
# Netbox DGNum
netbox.adminGroups = [
"root"
"fai"
];
# Videos DGNum
peertube.admins = [ "thubrecht" ];
};
};
}

View file

@ -0,0 +1,68 @@
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
# INFO: This file serves to publicize who are the administrators of
# certain services
{
organization = {
external = {
dns = [
"thubrecht"
"raito"
];
email = [ "raito" ];
irc = [ "raito" ];
};
services = {
# DG·SI
dgsi.admins = [
"mdebray"
"raito"
"thubrecht"
];
# Démarches Normaliennes
ds-fr.admins = [
"thubrecht"
"jemagius"
];
# Forge git
forgejo.admins = [
"ecoppens"
"mdebray"
"raito"
"thubrecht"
];
# SSO and IdM
kanidm.admins = [
"mdebray"
"raito"
"thubrecht"
];
# Netbox DGNum
netbox.adminGroups = [
"root"
"fai"
];
# Cloud DGNum
nextcloud.admins = [
"jemagius"
"mdebray"
"raito"
"thubrecht"
];
# Videos DGNum
peertube.admins = [ "thubrecht" ];
};
};
}