You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applied, I got the following on ipmi_exporter logs:
Jan 29 16:45:35 [REDACTED] ipmi_exporter[2861019]: ts=2025-01-29T15:45:35.475Z caller=collector_sel.go:60 level=error msg="Failed to collect SEL data" target=[local] error="error running /usr/bin/sudo: exit status 1: sudo: The \"no new privileges\" flag is set, which prevents sudo from running as root.\nsudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.\n"
I can send a PR, if you can clarify which approach is preferred:
Ansible role default is using ipmi-exp user/group. Therefore, the default should be also to add sudoers.d file in place and remove those 3 lines from systemd
Another approach is to change the default user/group to root, and add a new flag variable eg. ipmi_run_as_non_root that will configure all of those
The text was updated successfully, but these errors were encountered:
I'm trying to make ipmi-exporter run as a non root user (the default if no variables are set by the user).
As per https://github.com/prometheus-community/ipmi_exporter/blob/master/docs/privileges.md, my playbook is like this:
ipmi_exporter.sudoers:
When applied, I got the following on ipmi_exporter logs:
This is due to protections in place on https://github.com/prometheus-community/ansible/blob/main/roles/ipmi_exporter/templates/ipmi_exporter.service.j2
On my tests, 3 lines in systemd service needs to be removed to allow sudo to run:
I can send a PR, if you can clarify which approach is preferred:
ipmi_run_as_non_root
that will configure all of thoseThe text was updated successfully, but these errors were encountered: