forked from DGNum/infrastructure
feat(meta/organization): Split the file
This commit is contained in:
parent
6cc74e8d2a
commit
e0a0bc8c5f
4 changed files with 137 additions and 84 deletions
11
meta/organization/default.nix
Normal file
11
meta/organization/default.nix
Normal 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
|
||||
];
|
||||
}
|
58
meta/organization/groups.nix
Normal file
58
meta/organization/groups.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
}
|
68
meta/organization/services.nix
Normal file
68
meta/organization/services.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue