-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Invalid systemd configuration options used #431
Comments
The following code should work:
However, I do not know how we are going to put something like that in the files under |
Having this CapabilityBoundingSet key without any values set seems to keep prometheus from starting on (some?, e.g. OEL8) systems, when attempting to run prometheus on a privileged port, e.g. 80 for the rest of the details below... For root:root manage user/group overrides, just the CapabilityBoundingSet= seems to cause a failed start. For the default prometheus:prometheus user/group, and setcap tweaks on the prometheus binary, e.g. $ sudo setcap 'cap_net_bind_service=+ep' /opt/prometheus-2.28.0-linux-amd64/prometheus more of the options cause a failed start, and the following seems to be a working set, noting the entries that are commented out... #NoNewPrivileges=true A nice solution might be to include these 'lockdown' options based on some kind of strict security setting set to true or false. I noticed that these 'lockdown' options were part of a commit on Jan 6, 2020, and were likely first included in the 8.2.0 release. If you run prometheus as prometheus:prometheus, on the default 9090 port, these 'lockdown' options don't cause any of the startup issues above, IIRC. Also, see #568 for more detail... |
Since we just dropped EL7 support I guess this is no longer relevant. Please re-open if I am wrong ;) |
Seems some of the systemd unit file options passed are not valid on RHEL7 systemd. I wasn't sure how to best go about making this module only use supported flags. There is the
systemd_version
fact if it could be determined which options are supported for a certain version. What OS were the new parameters from #415 pulled from and what systemd version was that?Systemd version:
Affected Puppet, Ruby, OS and module versions/distributions
The text was updated successfully, but these errors were encountered: