Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

reintroduce user management into defaults and add testing user creation #74

Merged
merged 1 commit into from
Feb 27, 2019

Conversation

paulfantom
Copy link
Member

Seems like there are use cases where node_exporter might be needed to be run as a different user than one which this role creates.

Only change in a logic is to skip user management (user and group creation) when node_exporter is expected to be running as root. Otherwise this just moves variables to make setting user visible and documented. Additionally I put some tests around user and group creation.

Spawned by prometheus/node_exporter#1246

Copy link
Collaborator

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SuperQ
Copy link
Collaborator

SuperQ commented Feb 27, 2019

I really don't like that there's a feature in node_exporter that requires root. 😦

@paulfantom paulfantom merged commit 01cd553 into master Feb 27, 2019
@paulfantom paulfantom deleted the system_user branch February 27, 2019 09:24
@lock
Copy link

lock bot commented Mar 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants