-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prometheus-alertmanager module: implement meshing #46571
Conversation
users.extraGroups."${cfg.group}" = { }; | ||
|
||
systemd.tmpfiles.rules = [ | ||
"d ${cfg.stateDir} 0770 ${cfg.user} ${cfg.group} -" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this chowned recursively?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RuntimeDirectory
provided by systemd might be better.
description = '' | ||
User name under which Alertmanager shall be run. | ||
''; | ||
}; | ||
|
||
group = mkOption { | ||
type = types.str; | ||
default = "nogroup"; | ||
default = "alertmanager"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it does not matter, DynamicUser
might be an option.
Behaviour changed in current alertmanager version, closing for now. |
Motivation for this change
Allow meshing in the prometheus alertmanager module.
This has been used in production for quite some time and we just missed upstreaming it.
Therefore, and due to it being a rather small change, I propose backporting to 18.09 (cc @vcunat, @samueldr)
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)