Skip to content
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

datadog_user on linux does not seem to allow changing the user datadog is running as #456

Open
mriddell-foundry opened this issue Sep 21, 2022 · 1 comment

Comments

@mriddell-foundry
Copy link

Hello,

I am trying to change the datadog_user variable to run datadog as a differing user. However when setting the "datadog_user" option in the variables section of my ansible task ike so:

name: Install datadog become: yes import_role: name: datadog.datadog vars: datadog_user: root

it does not appear to set the systemd files to run as the root user. However if I add an option like datadog_additional_groups it will add the associated groups to the root user making it seem like it does correctly get set.

@bkabrda
Copy link
Contributor

bkabrda commented May 16, 2023

Hi 👋 we don't really support running the Agent as other user than dd-agent. We have this value defined in datadog_user variable to not have it hardcoded in multiple places, but changing the value will not work (which is why it's not documented in the README).

Running the Agent as root is strongly discouraged. Is there a specific reason why you need to do that?
In terms of "fixing" this issue, I guess for now we could just create a task that will check that datadog_user is dd-agent and fail if it is not, explaining the reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants