node_exporter gets its own uidgid
This commit is contained in:
parent
9740b42493
commit
f87a712635
5
data.nix
5
data.nix
@ -5,6 +5,11 @@ rec {
|
|||||||
gitea = 995;
|
gitea = 995;
|
||||||
updaterbot-deployer = 501;
|
updaterbot-deployer = 501;
|
||||||
updaterbot-deployee = 502;
|
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 = {
|
ports = {
|
||||||
|
@ -13,6 +13,18 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
enabledCollectors = ["systemd" "processes"];
|
enabledCollectors = ["systemd" "processes"];
|
||||||
port = myData.ports.exporters.node;
|
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 = [
|
mj.services.friendlyport.vpn.ports = [
|
||||||
|
Loading…
Reference in New Issue
Block a user