-
Notifications
You must be signed in to change notification settings - Fork 231
Change default datadog_agent group #248
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
Conversation
| mode: 0640 | ||
| owner: "root" | ||
| owner: "{{ datadog_user }}" | ||
| group: "{{ datadog_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.
I think it should be the group that changes, not the owner. The default value for datadog_group in ansible is root.
In chef the owner is root, and the group is datadog-agent.
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.
Do we need to change the group globally in the playbook or just for the system probe?
@KSerrania do you know why datadog_group defaults to root?
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.
Not really, the user and group were set 4 years ago. I found this commit: 70b3d5d which explains that the group must be root, otherwise the debian package install will fail. However, since this was 4 years ago, we should check if that's still the case. If it is not, aligning the role with our other installation methods may be a good idea.
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.
We changed the group on Puppet [1] from root to dd-agent and so far we have seen no complaints. I think it should be safe to do it everywhere.
[1] https://github.com/DataDog/puppet-datadog-agent/blame/master/manifests/params.pp#L47
albertvaka
left a comment
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.
I think we should change the group to not be root instead of the owner.
|
FWIW, these config mgmt tools used to set the Note that it's important for the |
The default group should be dd-agent, not root
982106c to
351843f
Compare
In both the chef recipe and here in ansible, we have it as |
OK, just a note then: for consistency it'd be nice to change the |
The default group should be dd-agent, not root