node_exporter gets its own uidgid

This commit is contained in:
Motiejus Jakštys 2023-08-25 09:55:21 +03:00
parent 9740b42493
commit f87a712635
2 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,11 @@ rec {
gitea = 995;
updaterbot-deployer = 501;
updaterbot-deployee = 502;
# the underscore differentiates "our" user from the
# "upstream" user. We need a way to configure the uidgid,
# so creating users explicitly.
node_exporter = 503;
};
ports = {

View File

@ -13,6 +13,18 @@
enable = true;
enabledCollectors = ["systemd" "processes"];
port = myData.ports.exporters.node;
user = "node_exporter";
group = "node_exporter";
};
users.users.node_exporter = {
isSystemUser = true;
group = "node_exporter";
uid = myData.uidgid.node_exporter;
};
users.groups.node_exporter = {
gid = myData.uidgid.node_exporter;
};
mj.services.friendlyport.vpn.ports = [